@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateResourcePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateResourcePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
CreateResourcePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
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 |
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.
|
CreateResourcePolicyRequest |
withPolicy(String policy)
A resource policy to add to the resource.
|
CreateResourcePolicyRequest |
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 CreateResourcePolicyRequest 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 CreateResourcePolicyRequest 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 String toString()
toString
in class Object
Object.toString()
public CreateResourcePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()