Interface CreateResourcePolicyRequest.Builder
- All Superinterfaces:
- AwsRequest.Builder,- Buildable,- CopyableBuilder<CreateResourcePolicyRequest.Builder,,- CreateResourcePolicyRequest> - LexModelsV2Request.Builder,- SdkBuilder<CreateResourcePolicyRequest.Builder,,- CreateResourcePolicyRequest> - SdkPojo,- SdkRequest.Builder
- Enclosing class:
- CreateResourcePolicyRequest
@Mutable
@NotThreadSafe
public static interface CreateResourcePolicyRequest.Builder
extends LexModelsV2Request.Builder, SdkPojo, CopyableBuilder<CreateResourcePolicyRequest.Builder,CreateResourcePolicyRequest> 
- 
Method SummaryModifier and TypeMethodDescriptionoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.A resource policy to add to the resource.resourceArn(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.BuilderoverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.services.lexmodelsv2.model.LexModelsV2Request.BuilderbuildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
resourceArnThe 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.
 
- 
policyA 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.
 
- 
overrideConfigurationCreateResourcePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- overrideConfiguration- The override configuration.
- Returns:
- This object for method chaining.
 
- 
overrideConfigurationCreateResourcePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- builderConsumer- A- Consumerto which an empty- AwsRequestOverrideConfiguration.Builderwill be given.
- Returns:
- This object for method chaining.
 
 
-