@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutResourcePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
PutResourcePolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
PutResourcePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getPolicy()
The policy document to set; formatted in JSON.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the entity resource you want to associate with a resource policy.
|
int |
hashCode() |
void |
setPolicy(String policy)
The policy document to set; formatted in JSON.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the entity resource you want to associate with a resource policy.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withPolicy(String policy)
The policy document to set; formatted in JSON.
|
PutResourcePolicyRequest |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the entity resource you want to associate with a resource policy.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the entity resource you want to associate with a resource policy.
resourceArn - The Amazon Resource Name (ARN) of the entity resource you want to associate with a resource policy.public String getResourceArn()
The Amazon Resource Name (ARN) of the entity resource you want to associate with a resource policy.
public PutResourcePolicyRequest withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the entity resource you want to associate with a resource policy.
resourceArn - The Amazon Resource Name (ARN) of the entity resource you want to associate with a resource policy.public void setPolicy(String policy)
The policy document to set; formatted in JSON.
policy - The policy document to set; formatted in JSON.public String getPolicy()
The policy document to set; formatted in JSON.
public PutResourcePolicyRequest withPolicy(String policy)
The policy document to set; formatted in JSON.
policy - The policy document to set; formatted in JSON.public String toString()
toString in class ObjectObject.toString()public PutResourcePolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()