Interface UpdateResourcePolicyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateResourcePolicyRequest.Builder,UpdateResourcePolicyRequest>,LexModelsV2Request.Builder,SdkBuilder<UpdateResourcePolicyRequest.Builder,UpdateResourcePolicyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateResourcePolicyRequest
public static interface UpdateResourcePolicyRequest.Builder extends LexModelsV2Request.Builder, SdkPojo, CopyableBuilder<UpdateResourcePolicyRequest.Builder,UpdateResourcePolicyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UpdateResourcePolicyRequest.BuilderexpectedRevisionId(String expectedRevisionId)The identifier of the revision of the policy to update.UpdateResourcePolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateResourcePolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)UpdateResourcePolicyRequest.Builderpolicy(String policy)A resource policy to add to the resource.UpdateResourcePolicyRequest.BuilderresourceArn(String resourceArn)The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lexmodelsv2.model.LexModelsV2Request.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
resourceArn
UpdateResourcePolicyRequest.Builder resourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
UpdateResourcePolicyRequest.Builder policy(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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedRevisionId
UpdateResourcePolicyRequest.Builder expectedRevisionId(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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateResourcePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateResourcePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-