@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() |
boolean |
equals(Object obj) |
String |
getPolicy()
A policy you want to associate with a resource.
|
String |
getPolicyHash()
ID of the current policy version.
|
String |
getPolicyId()
The policy ID.
|
String |
getResourceArn()
Amazon Resource Name (ARN) of the resource to which the policies are attached.
|
int |
hashCode() |
void |
setPolicy(String policy)
A policy you want to associate with a resource.
|
void |
setPolicyHash(String policyHash)
ID of the current policy version.
|
void |
setPolicyId(String policyId)
The policy ID.
|
void |
setResourceArn(String resourceArn)
Amazon Resource Name (ARN) of the resource to which the policies are attached.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withPolicy(String policy)
A policy you want to associate with a resource.
|
PutResourcePolicyRequest |
withPolicyHash(String policyHash)
ID of the current policy version.
|
PutResourcePolicyRequest |
withPolicyId(String policyId)
The policy ID.
|
PutResourcePolicyRequest |
withResourceArn(String resourceArn)
Amazon Resource Name (ARN) of the resource to which the policies are attached.
|
addHandlerContext, copyBaseTo, 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)
Amazon Resource Name (ARN) of the resource to which the policies are attached.
resourceArn - Amazon Resource Name (ARN) of the resource to which the policies are attached.public String getResourceArn()
Amazon Resource Name (ARN) of the resource to which the policies are attached.
public PutResourcePolicyRequest withResourceArn(String resourceArn)
Amazon Resource Name (ARN) of the resource to which the policies are attached.
resourceArn - Amazon Resource Name (ARN) of the resource to which the policies are attached.public void setPolicy(String policy)
A policy you want to associate with a resource.
policy - A policy you want to associate with a resource.public String getPolicy()
A policy you want to associate with a resource.
public PutResourcePolicyRequest withPolicy(String policy)
A policy you want to associate with a resource.
policy - A policy you want to associate with a resource.public void setPolicyId(String policyId)
The policy ID.
policyId - The policy ID.public String getPolicyId()
The policy ID.
public PutResourcePolicyRequest withPolicyId(String policyId)
The policy ID.
policyId - The policy ID.public void setPolicyHash(String policyHash)
ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to overwrite a policy.
policyHash - ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to
overwrite a policy.public String getPolicyHash()
ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to overwrite a policy.
public PutResourcePolicyRequest withPolicyHash(String policyHash)
ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to overwrite a policy.
policyHash - ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to
overwrite a policy.public String toString()
toString in class ObjectObject.toString()public PutResourcePolicyRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2022. All rights reserved.