@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateResourcePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateResourcePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateResourcePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getExpectedRevisionId()
The identifier of the revision of the policy to update.
|
String |
getPolicy()
A resource policy to add to the resource.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
|
int |
hashCode() |
void |
setExpectedRevisionId(String expectedRevisionId)
The identifier of the revision of the policy to update.
|
void |
setPolicy(String policy)
A resource policy to add to the resource.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
|
String |
toString()
Returns a string representation of this object.
|
UpdateResourcePolicyRequest |
withExpectedRevisionId(String expectedRevisionId)
The identifier of the revision of the policy to update.
|
UpdateResourcePolicyRequest |
withPolicy(String policy)
A resource policy to add to the resource.
|
UpdateResourcePolicyRequest |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
|
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 setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
resourceArn
- The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.public String getResourceArn()
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
public UpdateResourcePolicyRequest withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
resourceArn
- The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.public void setPolicy(String policy)
A resource policy to add to the resource. The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow the IAM syntax. For more information about the contents of a JSON policy document, see IAM JSON policy reference .
If the policy isn't valid, Amazon Lex returns a validation exception.
policy
- A resource policy to add to the resource. The policy is a JSON structure that contains one or more
statements that define the policy. The policy must follow the IAM syntax. For more information about the
contents of a JSON policy document, see IAM JSON policy reference
.
If the policy isn't valid, Amazon Lex returns a validation exception.
public String getPolicy()
A resource policy to add to the resource. The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow the IAM syntax. For more information about the contents of a JSON policy document, see IAM JSON policy reference .
If the policy isn't valid, Amazon Lex returns a validation exception.
If the policy isn't valid, Amazon Lex returns a validation exception.
public UpdateResourcePolicyRequest withPolicy(String policy)
A resource policy to add to the resource. The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow the IAM syntax. For more information about the contents of a JSON policy document, see IAM JSON policy reference .
If the policy isn't valid, Amazon Lex returns a validation exception.
policy
- A resource policy to add to the resource. The policy is a JSON structure that contains one or more
statements that define the policy. The policy must follow the IAM syntax. For more information about the
contents of a JSON policy document, see IAM JSON policy reference
.
If the policy isn't valid, Amazon Lex returns a validation exception.
public void setExpectedRevisionId(String expectedRevisionId)
The identifier of the revision of the policy to update. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception.
If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.
expectedRevisionId
- The identifier of the revision of the policy to update. If this revision ID doesn't match the current
revision ID, Amazon Lex throws an exception.
If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.
public String getExpectedRevisionId()
The identifier of the revision of the policy to update. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception.
If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.
If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.
public UpdateResourcePolicyRequest withExpectedRevisionId(String expectedRevisionId)
The identifier of the revision of the policy to update. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception.
If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.
expectedRevisionId
- The identifier of the revision of the policy to update. If this revision ID doesn't match the current
revision ID, Amazon Lex throws an exception.
If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.
public String toString()
toString
in class Object
Object.toString()
public UpdateResourcePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()