@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 you want to attach a policy.
|
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 you want to attach a policy.
|
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 you want to attach a policy.
|
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, withSdkRequestTimeout
public void setResourceArn(String resourceArn)
Amazon Resource Name (ARN) of the resource to which you want to attach a policy.
resourceArn
- Amazon Resource Name (ARN) of the resource to which you want to attach a policy.public String getResourceArn()
Amazon Resource Name (ARN) of the resource to which you want to attach a policy.
public PutResourcePolicyRequest withResourceArn(String resourceArn)
Amazon Resource Name (ARN) of the resource to which you want to attach a policy.
resourceArn
- Amazon Resource Name (ARN) of the resource to which you want to attach a policy.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. You must provide this hash when updating or deleting a policy.
policyHash
- ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to
overwrite a policy. You must provide this hash when updating or deleting 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. You must provide this hash when updating or deleting 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. You must provide this hash when updating or deleting a policy.
policyHash
- ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to
overwrite a policy. You must provide this hash when updating or deleting a policy.public String toString()
toString
in class Object
Object.toString()
public PutResourcePolicyRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2023. All rights reserved.