Interface GetSubscriptionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetSubscriptionResponse.Builder,,GetSubscriptionResponse> PricingPlanManagerResponse.Builder,SdkBuilder<GetSubscriptionResponse.Builder,,GetSubscriptionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetSubscriptionResponse
@Mutable
@NotThreadSafe
public static interface GetSubscriptionResponse.Builder
extends PricingPlanManagerResponse.Builder, SdkPojo, CopyableBuilder<GetSubscriptionResponse.Builder,GetSubscriptionResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe entity tag for concurrency control.default GetSubscriptionResponse.Buildersubscription(Consumer<Subscription.Builder> subscription) The details of the requested subscription.subscription(Subscription subscription) The details of the requested subscription.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.pricingplanmanager.model.PricingPlanManagerResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
subscription
The details of the requested subscription.
- Parameters:
subscription- The details of the requested subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscription
The details of the requested subscription.
This is a convenience method that creates an instance of theSubscription.Builderavoiding the need to create one manually viaSubscription.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubscription(Subscription).- Parameters:
subscription- a consumer that will call methods onSubscription.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eTag
The entity tag for concurrency control. Use this value in the
If-Matchheader for subsequent operations on this subscription.- Parameters:
eTag- The entity tag for concurrency control. Use this value in theIf-Matchheader for subsequent operations on this subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-