@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()
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)
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)
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, withSdkRequestTimeout
public 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)
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
- 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()
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.
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)
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
- 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.ExistCondition
public 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.ExistCondition
public 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.ExistCondition
public 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.ExistCondition
public String toString()
toString
in class Object
Object.toString()
public PutResourcePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.