@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateResourcePolicyStatementRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateResourcePolicyStatementRequest() |
Modifier and Type | Method and Description |
---|---|
CreateResourcePolicyStatementRequest |
addConditionEntry(String key,
Map<String,String> value)
Add a single Condition entry
|
CreateResourcePolicyStatementRequest |
clearConditionEntries()
Removes all the entries added into Condition.
|
CreateResourcePolicyStatementRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getAction()
The Amazon Lex action that this policy either allows or denies.
|
Map<String,Map<String,String>> |
getCondition()
Specifies a condition when the policy is in effect.
|
String |
getEffect()
Determines whether the statement allows or denies access to the resource.
|
String |
getExpectedRevisionId()
The identifier of the revision of the policy to edit.
|
List<Principal> |
getPrincipal()
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied access
to a resource.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
|
String |
getStatementId()
The name of the statement.
|
int |
hashCode() |
void |
setAction(Collection<String> action)
The Amazon Lex action that this policy either allows or denies.
|
void |
setCondition(Map<String,Map<String,String>> condition)
Specifies a condition when the policy is in effect.
|
void |
setEffect(String effect)
Determines whether the statement allows or denies access to the resource.
|
void |
setExpectedRevisionId(String expectedRevisionId)
The identifier of the revision of the policy to edit.
|
void |
setPrincipal(Collection<Principal> principal)
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied access
to a resource.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
|
void |
setStatementId(String statementId)
The name of the statement.
|
String |
toString()
Returns a string representation of this object.
|
CreateResourcePolicyStatementRequest |
withAction(Collection<String> action)
The Amazon Lex action that this policy either allows or denies.
|
CreateResourcePolicyStatementRequest |
withAction(String... action)
The Amazon Lex action that this policy either allows or denies.
|
CreateResourcePolicyStatementRequest |
withCondition(Map<String,Map<String,String>> condition)
Specifies a condition when the policy is in effect.
|
CreateResourcePolicyStatementRequest |
withEffect(Effect effect)
Determines whether the statement allows or denies access to the resource.
|
CreateResourcePolicyStatementRequest |
withEffect(String effect)
Determines whether the statement allows or denies access to the resource.
|
CreateResourcePolicyStatementRequest |
withExpectedRevisionId(String expectedRevisionId)
The identifier of the revision of the policy to edit.
|
CreateResourcePolicyStatementRequest |
withPrincipal(Collection<Principal> principal)
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied access
to a resource.
|
CreateResourcePolicyStatementRequest |
withPrincipal(Principal... principal)
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied access
to a resource.
|
CreateResourcePolicyStatementRequest |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
|
CreateResourcePolicyStatementRequest |
withStatementId(String statementId)
The name of the statement.
|
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 CreateResourcePolicyStatementRequest()
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 CreateResourcePolicyStatementRequest 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 setStatementId(String statementId)
The name of the statement. The ID is the same as the Sid
IAM property. The statement name must be
unique within the policy. For more information, see IAM JSON policy
elements: Sid.
statementId
- The name of the statement. The ID is the same as the Sid
IAM property. The statement name
must be unique within the policy. For more information, see IAM JSON
policy elements: Sid.public String getStatementId()
The name of the statement. The ID is the same as the Sid
IAM property. The statement name must be
unique within the policy. For more information, see IAM JSON policy
elements: Sid.
Sid
IAM property. The statement name
must be unique within the policy. For more information, see IAM JSON
policy elements: Sid.public CreateResourcePolicyStatementRequest withStatementId(String statementId)
The name of the statement. The ID is the same as the Sid
IAM property. The statement name must be
unique within the policy. For more information, see IAM JSON policy
elements: Sid.
statementId
- The name of the statement. The ID is the same as the Sid
IAM property. The statement name
must be unique within the policy. For more information, see IAM JSON
policy elements: Sid.public void setEffect(String effect)
Determines whether the statement allows or denies access to the resource.
effect
- Determines whether the statement allows or denies access to the resource.Effect
public String getEffect()
Determines whether the statement allows or denies access to the resource.
Effect
public CreateResourcePolicyStatementRequest withEffect(String effect)
Determines whether the statement allows or denies access to the resource.
effect
- Determines whether the statement allows or denies access to the resource.Effect
public CreateResourcePolicyStatementRequest withEffect(Effect effect)
Determines whether the statement allows or denies access to the resource.
effect
- Determines whether the statement allows or denies access to the resource.Effect
public List<Principal> getPrincipal()
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied access to a resource. For more information, see Amazon Web Services JSON policy elements: Principal.
public void setPrincipal(Collection<Principal> principal)
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied access to a resource. For more information, see Amazon Web Services JSON policy elements: Principal.
principal
- An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied
access to a resource. For more information, see Amazon
Web Services JSON policy elements: Principal.public CreateResourcePolicyStatementRequest withPrincipal(Principal... principal)
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied access to a resource. For more information, see Amazon Web Services JSON policy elements: Principal.
NOTE: This method appends the values to the existing list (if any). Use
setPrincipal(java.util.Collection)
or withPrincipal(java.util.Collection)
if you want to
override the existing values.
principal
- An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied
access to a resource. For more information, see Amazon
Web Services JSON policy elements: Principal.public CreateResourcePolicyStatementRequest withPrincipal(Collection<Principal> principal)
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied access to a resource. For more information, see Amazon Web Services JSON policy elements: Principal.
principal
- An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied
access to a resource. For more information, see Amazon
Web Services JSON policy elements: Principal.public List<String> getAction()
The Amazon Lex action that this policy either allows or denies. The action must apply to the resource type of the specified ARN. For more information, see Actions, resources, and condition keys for Amazon Lex V2.
public void setAction(Collection<String> action)
The Amazon Lex action that this policy either allows or denies. The action must apply to the resource type of the specified ARN. For more information, see Actions, resources, and condition keys for Amazon Lex V2.
action
- The Amazon Lex action that this policy either allows or denies. The action must apply to the resource type
of the specified ARN. For more information, see Actions,
resources, and condition keys for Amazon Lex V2.public CreateResourcePolicyStatementRequest withAction(String... action)
The Amazon Lex action that this policy either allows or denies. The action must apply to the resource type of the specified ARN. For more information, see Actions, resources, and condition keys for Amazon Lex V2.
NOTE: This method appends the values to the existing list (if any). Use
setAction(java.util.Collection)
or withAction(java.util.Collection)
if you want to override the
existing values.
action
- The Amazon Lex action that this policy either allows or denies. The action must apply to the resource type
of the specified ARN. For more information, see Actions,
resources, and condition keys for Amazon Lex V2.public CreateResourcePolicyStatementRequest withAction(Collection<String> action)
The Amazon Lex action that this policy either allows or denies. The action must apply to the resource type of the specified ARN. For more information, see Actions, resources, and condition keys for Amazon Lex V2.
action
- The Amazon Lex action that this policy either allows or denies. The action must apply to the resource type
of the specified ARN. For more information, see Actions,
resources, and condition keys for Amazon Lex V2.public Map<String,Map<String,String>> getCondition()
Specifies a condition when the policy is in effect. If the principal of the policy is a service principal, you must provide two condition blocks, one with a SourceAccount global condition key and one with a SourceArn global condition key.
For more information, see IAM JSON policy elements: Condition .
For more information, see IAM JSON policy elements: Condition .
public void setCondition(Map<String,Map<String,String>> condition)
Specifies a condition when the policy is in effect. If the principal of the policy is a service principal, you must provide two condition blocks, one with a SourceAccount global condition key and one with a SourceArn global condition key.
For more information, see IAM JSON policy elements: Condition .
condition
- Specifies a condition when the policy is in effect. If the principal of the policy is a service principal,
you must provide two condition blocks, one with a SourceAccount global condition key and one with a
SourceArn global condition key.
For more information, see IAM JSON policy elements: Condition .
public CreateResourcePolicyStatementRequest withCondition(Map<String,Map<String,String>> condition)
Specifies a condition when the policy is in effect. If the principal of the policy is a service principal, you must provide two condition blocks, one with a SourceAccount global condition key and one with a SourceArn global condition key.
For more information, see IAM JSON policy elements: Condition .
condition
- Specifies a condition when the policy is in effect. If the principal of the policy is a service principal,
you must provide two condition blocks, one with a SourceAccount global condition key and one with a
SourceArn global condition key.
For more information, see IAM JSON policy elements: Condition .
public CreateResourcePolicyStatementRequest addConditionEntry(String key, Map<String,String> value)
public CreateResourcePolicyStatementRequest clearConditionEntries()
public void setExpectedRevisionId(String expectedRevisionId)
The identifier of the revision of the policy to edit. 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 edit. 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 edit. 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 CreateResourcePolicyStatementRequest withExpectedRevisionId(String expectedRevisionId)
The identifier of the revision of the policy to edit. 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 edit. 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 CreateResourcePolicyStatementRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()