@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 |
getPolicyDocument()
The JSON resource policy document.
|
String |
getResourceArn()
The ARN of the resource policy.
|
int |
hashCode() |
void |
setPolicyDocument(String policyDocument)
The JSON resource policy document.
|
void |
setResourceArn(String resourceArn)
The ARN of the resource policy.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withPolicyDocument(String policyDocument)
The JSON resource policy document.
|
PutResourcePolicyRequest |
withResourceArn(String resourceArn)
The ARN of the 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, withSdkRequestTimeout
public void setPolicyDocument(String policyDocument)
The JSON resource policy document.
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
policyDocument
- The JSON resource policy document.public String getPolicyDocument()
The JSON resource policy document.
This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
public PutResourcePolicyRequest withPolicyDocument(String policyDocument)
The JSON resource policy document.
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
policyDocument
- The JSON resource policy document.public void setResourceArn(String resourceArn)
The ARN of the resource policy.
resourceArn
- The ARN of the resource policy.public String getResourceArn()
The ARN of the resource policy.
public PutResourcePolicyRequest withResourceArn(String resourceArn)
The ARN of the resource policy.
resourceArn
- The ARN of the resource policy.public String toString()
toString
in class Object
Object.toString()
public PutResourcePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()