Interface CreateSubscriptionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateSubscriptionRequest.Builder,
,CreateSubscriptionRequest> QBusinessRequest.Builder
,SdkBuilder<CreateSubscriptionRequest.Builder,
,CreateSubscriptionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateSubscriptionRequest
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) The identifier of the Amazon Q Business application the subscription should be added to.clientToken
(String clientToken) A token that you provide to identify the request to create a subscription for your Amazon Q Business application.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.principal
(Consumer<SubscriptionPrincipal.Builder> principal) The IAM Identity CenterUserId
orGroupId
of a user or group in the IAM Identity Center instance connected to the Amazon Q Business application.principal
(SubscriptionPrincipal principal) The IAM Identity CenterUserId
orGroupId
of a user or group in the IAM Identity Center instance connected to the Amazon Q Business application.The type of Amazon Q Business subscription you want to create.type
(SubscriptionType type) The type of Amazon Q Business subscription you want to create.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.qbusiness.model.QBusinessRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
applicationId
The identifier of the Amazon Q Business application the subscription should be added to.
- Parameters:
applicationId
- The identifier of the Amazon Q Business application the subscription should be added to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
The IAM Identity Center
UserId
orGroupId
of a user or group in the IAM Identity Center instance connected to the Amazon Q Business application.- Parameters:
principal
- The IAM Identity CenterUserId
orGroupId
of a user or group in the IAM Identity Center instance connected to the Amazon Q Business application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
default CreateSubscriptionRequest.Builder principal(Consumer<SubscriptionPrincipal.Builder> principal) The IAM Identity Center
This is a convenience method that creates an instance of theUserId
orGroupId
of a user or group in the IAM Identity Center instance connected to the Amazon Q Business application.SubscriptionPrincipal.Builder
avoiding the need to create one manually viaSubscriptionPrincipal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprincipal(SubscriptionPrincipal)
.- Parameters:
principal
- a consumer that will call methods onSubscriptionPrincipal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of Amazon Q Business subscription you want to create.
- Parameters:
type
- The type of Amazon Q Business subscription you want to create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of Amazon Q Business subscription you want to create.
- Parameters:
type
- The type of Amazon Q Business subscription you want to create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A token that you provide to identify the request to create a subscription for your Amazon Q Business application.
- Parameters:
clientToken
- A token that you provide to identify the request to create a subscription for your Amazon Q Business application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateSubscriptionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateSubscriptionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-