@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 content of the resource policy being updated.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the resource of which its resource policy is updated.
|
int |
hashCode() |
void |
setPolicy(String policy)
The content of the resource policy being updated.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource of which its resource policy is updated.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withPolicy(String policy)
The content of the resource policy being updated.
|
PutResourcePolicyRequest |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource of which its resource policy is updated.
|
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 resource of which its resource policy is updated.
resourceArn - The Amazon Resource Name (ARN) of the resource of which its resource policy is updated.public String getResourceArn()
The Amazon Resource Name (ARN) of the resource of which its resource policy is updated.
public PutResourcePolicyRequest withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource of which its resource policy is updated.
resourceArn - The Amazon Resource Name (ARN) of the resource of which its resource policy is updated.public void setPolicy(String policy)
The content of the resource policy being updated.
policy - The content of the resource policy being updated.public String getPolicy()
The content of the resource policy being updated.
public PutResourcePolicyRequest withPolicy(String policy)
The content of the resource policy being updated.
policy - The content of the resource policy being updated.public String toString()
toString in class ObjectObject.toString()public PutResourcePolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()