@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) |
Boolean |
getBypassPolicyLockoutCheck()
A flag to indicate whether to bypass the resource policy lockout safety check.
|
String |
getPolicyDocument()
The resource policy document, which can be up to 5kb in size.
|
String |
getPolicyName()
The name of the resource policy.
|
String |
getPolicyRevisionId()
Specifies a specific policy revision, to ensure an atomic create operation.
|
int |
hashCode() |
Boolean |
isBypassPolicyLockoutCheck()
A flag to indicate whether to bypass the resource policy lockout safety check.
|
void |
setBypassPolicyLockoutCheck(Boolean bypassPolicyLockoutCheck)
A flag to indicate whether to bypass the resource policy lockout safety check.
|
void |
setPolicyDocument(String policyDocument)
The resource policy document, which can be up to 5kb in size.
|
void |
setPolicyName(String policyName)
The name of the resource policy.
|
void |
setPolicyRevisionId(String policyRevisionId)
Specifies a specific policy revision, to ensure an atomic create operation.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withBypassPolicyLockoutCheck(Boolean bypassPolicyLockoutCheck)
A flag to indicate whether to bypass the resource policy lockout safety check.
|
PutResourcePolicyRequest |
withPolicyDocument(String policyDocument)
The resource policy document, which can be up to 5kb in size.
|
PutResourcePolicyRequest |
withPolicyName(String policyName)
The name of the resource policy.
|
PutResourcePolicyRequest |
withPolicyRevisionId(String policyRevisionId)
Specifies a specific policy revision, to ensure an atomic create operation.
|
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 setPolicyName(String policyName)
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
policyName
- The name of the resource policy. Must be unique within a specific Amazon Web Services account.public String getPolicyName()
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
public PutResourcePolicyRequest withPolicyName(String policyName)
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
policyName
- The name of the resource policy. Must be unique within a specific Amazon Web Services account.public void setPolicyDocument(String policyDocument)
The resource policy document, which can be up to 5kb in size.
policyDocument
- The resource policy document, which can be up to 5kb in size.public String getPolicyDocument()
The resource policy document, which can be up to 5kb in size.
public PutResourcePolicyRequest withPolicyDocument(String policyDocument)
The resource policy document, which can be up to 5kb in size.
policyDocument
- The resource policy document, which can be up to 5kb in size.public void setPolicyRevisionId(String policyRevisionId)
Specifies a specific policy revision, to ensure an atomic create operation. By default the resource policy is created if it does not exist, or updated with an incremented revision id. The revision id is unique to each policy in the account.
If the policy revision id does not match the latest revision id, the operation will fail with an
InvalidPolicyRevisionIdException
exception. You can also provide a PolicyRevisionId
of
0. In this case, the operation will fail with an InvalidPolicyRevisionIdException
exception if a
resource policy with the same name already exists.
policyRevisionId
- Specifies a specific policy revision, to ensure an atomic create operation. By default the resource policy
is created if it does not exist, or updated with an incremented revision id. The revision id is unique to
each policy in the account.
If the policy revision id does not match the latest revision id, the operation will fail with an
InvalidPolicyRevisionIdException
exception. You can also provide a
PolicyRevisionId
of 0. In this case, the operation will fail with an
InvalidPolicyRevisionIdException
exception if a resource policy with the same name already
exists.
public String getPolicyRevisionId()
Specifies a specific policy revision, to ensure an atomic create operation. By default the resource policy is created if it does not exist, or updated with an incremented revision id. The revision id is unique to each policy in the account.
If the policy revision id does not match the latest revision id, the operation will fail with an
InvalidPolicyRevisionIdException
exception. You can also provide a PolicyRevisionId
of
0. In this case, the operation will fail with an InvalidPolicyRevisionIdException
exception if a
resource policy with the same name already exists.
If the policy revision id does not match the latest revision id, the operation will fail with an
InvalidPolicyRevisionIdException
exception. You can also provide a
PolicyRevisionId
of 0. In this case, the operation will fail with an
InvalidPolicyRevisionIdException
exception if a resource policy with the same name already
exists.
public PutResourcePolicyRequest withPolicyRevisionId(String policyRevisionId)
Specifies a specific policy revision, to ensure an atomic create operation. By default the resource policy is created if it does not exist, or updated with an incremented revision id. The revision id is unique to each policy in the account.
If the policy revision id does not match the latest revision id, the operation will fail with an
InvalidPolicyRevisionIdException
exception. You can also provide a PolicyRevisionId
of
0. In this case, the operation will fail with an InvalidPolicyRevisionIdException
exception if a
resource policy with the same name already exists.
policyRevisionId
- Specifies a specific policy revision, to ensure an atomic create operation. By default the resource policy
is created if it does not exist, or updated with an incremented revision id. The revision id is unique to
each policy in the account.
If the policy revision id does not match the latest revision id, the operation will fail with an
InvalidPolicyRevisionIdException
exception. You can also provide a
PolicyRevisionId
of 0. In this case, the operation will fail with an
InvalidPolicyRevisionIdException
exception if a resource policy with the same name already
exists.
public void setBypassPolicyLockoutCheck(Boolean bypassPolicyLockoutCheck)
A flag to indicate whether to bypass the resource policy lockout safety check.
Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately.
Use this parameter only when you include a policy in the request and you intend to prevent the principal that is
making the request from making a subsequent PutResourcePolicy
request.
The default value is false.
bypassPolicyLockoutCheck
- A flag to indicate whether to bypass the resource policy lockout safety check. Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately.
Use this parameter only when you include a policy in the request and you intend to prevent the principal
that is making the request from making a subsequent PutResourcePolicy
request.
The default value is false.
public Boolean getBypassPolicyLockoutCheck()
A flag to indicate whether to bypass the resource policy lockout safety check.
Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately.
Use this parameter only when you include a policy in the request and you intend to prevent the principal that is
making the request from making a subsequent PutResourcePolicy
request.
The default value is false.
Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately.
Use this parameter only when you include a policy in the request and you intend to prevent the principal
that is making the request from making a subsequent PutResourcePolicy
request.
The default value is false.
public PutResourcePolicyRequest withBypassPolicyLockoutCheck(Boolean bypassPolicyLockoutCheck)
A flag to indicate whether to bypass the resource policy lockout safety check.
Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately.
Use this parameter only when you include a policy in the request and you intend to prevent the principal that is
making the request from making a subsequent PutResourcePolicy
request.
The default value is false.
bypassPolicyLockoutCheck
- A flag to indicate whether to bypass the resource policy lockout safety check. Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately.
Use this parameter only when you include a policy in the request and you intend to prevent the principal
that is making the request from making a subsequent PutResourcePolicy
request.
The default value is false.
public Boolean isBypassPolicyLockoutCheck()
A flag to indicate whether to bypass the resource policy lockout safety check.
Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately.
Use this parameter only when you include a policy in the request and you intend to prevent the principal that is
making the request from making a subsequent PutResourcePolicy
request.
The default value is false.
Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately.
Use this parameter only when you include a policy in the request and you intend to prevent the principal
that is making the request from making a subsequent PutResourcePolicy
request.
The default value is false.
public String toString()
toString
in class Object
Object.toString()
public PutResourcePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()