Interface CreateSubscriptionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateSubscriptionResponse.Builder,
,CreateSubscriptionResponse> QBusinessResponse.Builder
,SdkBuilder<CreateSubscriptionResponse.Builder,
,CreateSubscriptionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateSubscriptionResponse
@Mutable
@NotThreadSafe
public static interface CreateSubscriptionResponse.Builder
extends QBusinessResponse.Builder, SdkPojo, CopyableBuilder<CreateSubscriptionResponse.Builder,CreateSubscriptionResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncurrentSubscription
(Consumer<SubscriptionDetails.Builder> currentSubscription) The type of your current Amazon Q Business subscription.currentSubscription
(SubscriptionDetails currentSubscription) The type of your current Amazon Q Business subscription.nextSubscription
(Consumer<SubscriptionDetails.Builder> nextSubscription) The type of the Amazon Q Business subscription for the next month.nextSubscription
(SubscriptionDetails nextSubscription) The type of the Amazon Q Business subscription for the next month.subscriptionArn
(String subscriptionArn) The Amazon Resource Name (ARN) of the Amazon Q Business subscription created.subscriptionId
(String subscriptionId) The identifier of the Amazon Q Business subscription created.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.qbusiness.model.QBusinessResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
subscriptionId
The identifier of the Amazon Q Business subscription created.
- Parameters:
subscriptionId
- The identifier of the Amazon Q Business subscription created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscriptionArn
The Amazon Resource Name (ARN) of the Amazon Q Business subscription created.
- Parameters:
subscriptionArn
- The Amazon Resource Name (ARN) of the Amazon Q Business subscription created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentSubscription
The type of your current Amazon Q Business subscription.
- Parameters:
currentSubscription
- The type of your current Amazon Q Business subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentSubscription
default CreateSubscriptionResponse.Builder currentSubscription(Consumer<SubscriptionDetails.Builder> currentSubscription) The type of your current Amazon Q Business subscription.
This is a convenience method that creates an instance of theSubscriptionDetails.Builder
avoiding the need to create one manually viaSubscriptionDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocurrentSubscription(SubscriptionDetails)
.- Parameters:
currentSubscription
- a consumer that will call methods onSubscriptionDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextSubscription
The type of the Amazon Q Business subscription for the next month.
- Parameters:
nextSubscription
- The type of the Amazon Q Business subscription for the next month.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextSubscription
default CreateSubscriptionResponse.Builder nextSubscription(Consumer<SubscriptionDetails.Builder> nextSubscription) The type of the Amazon Q Business subscription for the next month.
This is a convenience method that creates an instance of theSubscriptionDetails.Builder
avoiding the need to create one manually viaSubscriptionDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonextSubscription(SubscriptionDetails)
.- Parameters:
nextSubscription
- a consumer that will call methods onSubscriptionDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-