@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()
An IAM policy.
|
String |
getResourceArn()
The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created.
|
int |
hashCode() |
void |
setPolicy(String policy)
An IAM policy.
|
void |
setResourceArn(String resourceArn)
The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withPolicy(String policy)
An IAM policy.
|
PutResourcePolicyRequest |
withResourceArn(String resourceArn)
The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created.
|
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 setPolicy(String policy)
An IAM policy. The policy string in JSON must not contain newlines or blank lines.
policy
- An IAM policy. The policy string in JSON must not contain newlines or blank lines.public String getPolicy()
An IAM policy. The policy string in JSON must not contain newlines or blank lines.
public PutResourcePolicyRequest withPolicy(String policy)
An IAM policy. The policy string in JSON must not contain newlines or blank lines.
policy
- An IAM policy. The policy string in JSON must not contain newlines or blank lines.public void setResourceArn(String resourceArn)
The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created.
resourceArn
- The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created.public String getResourceArn()
The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created.
public PutResourcePolicyRequest withResourceArn(String resourceArn)
The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created.
resourceArn
- The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created.public String toString()
toString
in class Object
Object.toString()
public PutResourcePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()