@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() |
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, copyBaseTo, 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)
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.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()
clone
in class AmazonWebServiceRequest
Copyright © 2018. All rights reserved.