@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 |
getPolicyExistsCondition()
A value of
MUST_EXIST is used to update a policy. |
String |
getPolicyHashCondition()
This is the hash value returned when the previous policy was set using PutResourcePolicy.
|
String |
getPolicyInJson()
Contains the policy document to set, in JSON format.
|
int |
hashCode() |
void |
setPolicyExistsCondition(String policyExistsCondition)
A value of
MUST_EXIST is used to update a policy. |
void |
setPolicyHashCondition(String policyHashCondition)
This is the hash value returned when the previous policy was set using PutResourcePolicy.
|
void |
setPolicyInJson(String policyInJson)
Contains the policy document to set, in JSON format.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withPolicyExistsCondition(ExistCondition policyExistsCondition)
A value of
MUST_EXIST is used to update a policy. |
PutResourcePolicyRequest |
withPolicyExistsCondition(String policyExistsCondition)
A value of
MUST_EXIST is used to update a policy. |
PutResourcePolicyRequest |
withPolicyHashCondition(String policyHashCondition)
This is the hash value returned when the previous policy was set using PutResourcePolicy.
|
PutResourcePolicyRequest |
withPolicyInJson(String policyInJson)
Contains the policy document to set, in JSON format.
|
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 setPolicyInJson(String policyInJson)
Contains the policy document to set, in JSON format.
policyInJson - Contains the policy document to set, in JSON format.public String getPolicyInJson()
Contains the policy document to set, in JSON format.
public PutResourcePolicyRequest withPolicyInJson(String policyInJson)
Contains the policy document to set, in JSON format.
policyInJson - Contains the policy document to set, in JSON format.public void setPolicyHashCondition(String policyHashCondition)
This is the hash value returned when the previous policy was set using PutResourcePolicy. Its purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set.
policyHashCondition - This is the hash value returned when the previous policy was set using PutResourcePolicy. Its purpose is
to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been
set.public String getPolicyHashCondition()
This is the hash value returned when the previous policy was set using PutResourcePolicy. Its purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set.
public PutResourcePolicyRequest withPolicyHashCondition(String policyHashCondition)
This is the hash value returned when the previous policy was set using PutResourcePolicy. Its purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set.
policyHashCondition - This is the hash value returned when the previous policy was set using PutResourcePolicy. Its purpose is
to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been
set.public void setPolicyExistsCondition(String policyExistsCondition)
A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used to
create a new policy. If a value of NONE or a null value is used, the call will not depend on the
existence of a policy.
policyExistsCondition - A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used
to create a new policy. If a value of NONE or a null value is used, the call will not depend
on the existence of a policy.ExistConditionpublic String getPolicyExistsCondition()
A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used to
create a new policy. If a value of NONE or a null value is used, the call will not depend on the
existence of a policy.
MUST_EXIST is used to update a policy. A value of NOT_EXIST is used
to create a new policy. If a value of NONE or a null value is used, the call will not depend
on the existence of a policy.ExistConditionpublic PutResourcePolicyRequest withPolicyExistsCondition(String policyExistsCondition)
A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used to
create a new policy. If a value of NONE or a null value is used, the call will not depend on the
existence of a policy.
policyExistsCondition - A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used
to create a new policy. If a value of NONE or a null value is used, the call will not depend
on the existence of a policy.ExistConditionpublic PutResourcePolicyRequest withPolicyExistsCondition(ExistCondition policyExistsCondition)
A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used to
create a new policy. If a value of NONE or a null value is used, the call will not depend on the
existence of a policy.
policyExistsCondition - A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used
to create a new policy. If a value of NONE or a null value is used, the call will not depend
on the existence of a policy.ExistConditionpublic String toString()
toString in class ObjectObject.toString()public PutResourcePolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.