@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourcePolicy extends Object implements Serializable, Cloneable, StructuredPojo
The resource policy that allows Incident Manager to perform actions on resources on your behalf.
| Constructor and Description |
|---|
ResourcePolicy() |
| Modifier and Type | Method and Description |
|---|---|
ResourcePolicy |
clone() |
boolean |
equals(Object obj) |
String |
getPolicyDocument()
The JSON blob that describes the policy.
|
String |
getPolicyId()
The ID of the resource policy.
|
String |
getRamResourceShareRegion()
The Amazon Web Services Region that policy allows resources to be used in.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setPolicyDocument(String policyDocument)
The JSON blob that describes the policy.
|
void |
setPolicyId(String policyId)
The ID of the resource policy.
|
void |
setRamResourceShareRegion(String ramResourceShareRegion)
The Amazon Web Services Region that policy allows resources to be used in.
|
String |
toString()
Returns a string representation of this object.
|
ResourcePolicy |
withPolicyDocument(String policyDocument)
The JSON blob that describes the policy.
|
ResourcePolicy |
withPolicyId(String policyId)
The ID of the resource policy.
|
ResourcePolicy |
withRamResourceShareRegion(String ramResourceShareRegion)
The Amazon Web Services Region that policy allows resources to be used in.
|
public void setPolicyDocument(String policyDocument)
The JSON blob that describes the policy.
policyDocument - The JSON blob that describes the policy.public String getPolicyDocument()
The JSON blob that describes the policy.
public ResourcePolicy withPolicyDocument(String policyDocument)
The JSON blob that describes the policy.
policyDocument - The JSON blob that describes the policy.public void setPolicyId(String policyId)
The ID of the resource policy.
policyId - The ID of the resource policy.public String getPolicyId()
The ID of the resource policy.
public ResourcePolicy withPolicyId(String policyId)
The ID of the resource policy.
policyId - The ID of the resource policy.public void setRamResourceShareRegion(String ramResourceShareRegion)
The Amazon Web Services Region that policy allows resources to be used in.
ramResourceShareRegion - The Amazon Web Services Region that policy allows resources to be used in.public String getRamResourceShareRegion()
The Amazon Web Services Region that policy allows resources to be used in.
public ResourcePolicy withRamResourceShareRegion(String ramResourceShareRegion)
The Amazon Web Services Region that policy allows resources to be used in.
ramResourceShareRegion - The Amazon Web Services Region that policy allows resources to be used in.public String toString()
toString in class ObjectObject.toString()public ResourcePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.