@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
PutPolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
PutPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.
|
String |
getPolicy()
The resource-based policy.
|
String |
getToken()
A unique identifier for the current revision of the policy.
|
int |
hashCode() |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.
|
void |
setPolicy(String policy)
The resource-based policy.
|
void |
setToken(String token)
A unique identifier for the current revision of the policy.
|
String |
toString()
Returns a string representation of this object.
|
PutPolicyRequest |
withArn(String arn)
The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.
|
PutPolicyRequest |
withPolicy(String policy)
The resource-based policy.
|
PutPolicyRequest |
withToken(String token)
A unique identifier for the current revision of the 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, withSdkRequestTimeoutpublic void setArn(String arn)
The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.
arn - The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.public String getArn()
The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.
public PutPolicyRequest withArn(String arn)
The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.
arn - The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.public void setPolicy(String policy)
The resource-based policy.
If you set the value of the effect parameter in the policy to Deny for the
PutPolicy operation, you must also set the value of the effect parameter to
Deny for the AddPolicyStatement operation.
policy - The resource-based policy.
If you set the value of the effect parameter in the policy to Deny
for the PutPolicy operation, you must also set the value of the effect parameter
to Deny for the AddPolicyStatement operation.
public String getPolicy()
The resource-based policy.
If you set the value of the effect parameter in the policy to Deny for the
PutPolicy operation, you must also set the value of the effect parameter to
Deny for the AddPolicyStatement operation.
If you set the value of the effect parameter in the policy to Deny
for the PutPolicy operation, you must also set the value of the effect
parameter to Deny for the AddPolicyStatement operation.
public PutPolicyRequest withPolicy(String policy)
The resource-based policy.
If you set the value of the effect parameter in the policy to Deny for the
PutPolicy operation, you must also set the value of the effect parameter to
Deny for the AddPolicyStatement operation.
policy - The resource-based policy.
If you set the value of the effect parameter in the policy to Deny
for the PutPolicy operation, you must also set the value of the effect parameter
to Deny for the AddPolicyStatement operation.
public void setToken(String token)
A unique identifier for the current revision of the policy.
token - A unique identifier for the current revision of the policy.public String getToken()
A unique identifier for the current revision of the policy.
public PutPolicyRequest withToken(String token)
A unique identifier for the current revision of the policy.
token - A unique identifier for the current revision of the policy.public String toString()
toString in class ObjectObject.toString()public PutPolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()