@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 you want to associate with a resource.
|
String |
getResourceArn()
Amazon Resource Name (ARN) of the resource to which you want to attach a policy.
|
int |
hashCode() |
void |
setPolicy(String policy)
The policy you want to associate with a resource.
|
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)
The policy you want to associate with a resource.
|
PutResourcePolicyRequest |
withResourceArn(String resourceArn)
Amazon Resource Name (ARN) of the resource to which you want to attach a 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 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)
The policy you want to associate with a resource.
For an example policy, see Working with shared backups in the CloudHSM User Guide
policy
- The policy you want to associate with a resource.
For an example policy, see Working with shared backups in the CloudHSM User Guide
public String getPolicy()
The policy you want to associate with a resource.
For an example policy, see Working with shared backups in the CloudHSM User Guide
For an example policy, see Working with shared backups in the CloudHSM User Guide
public PutResourcePolicyRequest withPolicy(String policy)
The policy you want to associate with a resource.
For an example policy, see Working with shared backups in the CloudHSM User Guide
policy
- The policy you want to associate with a resource.
For an example policy, see Working with shared backups in the CloudHSM User Guide
public String toString()
toString
in class Object
Object.toString()
public PutResourcePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()