Interface DescribeSavingsPlansResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeSavingsPlansResponse.Builder,
,DescribeSavingsPlansResponse> SavingsplansResponse.Builder
,SdkBuilder<DescribeSavingsPlansResponse.Builder,
,DescribeSavingsPlansResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeSavingsPlansResponse
public static interface DescribeSavingsPlansResponse.Builder
extends SavingsplansResponse.Builder, SdkPojo, CopyableBuilder<DescribeSavingsPlansResponse.Builder,DescribeSavingsPlansResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to use to retrieve the next page of results.savingsPlans
(Collection<SavingsPlan> savingsPlans) Information about the Savings Plans.savingsPlans
(Consumer<SavingsPlan.Builder>... savingsPlans) Information about the Savings Plans.savingsPlans
(SavingsPlan... savingsPlans) Information about the Savings Plans.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.savingsplans.model.SavingsplansResponse.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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
savingsPlans
Information about the Savings Plans.
- Parameters:
savingsPlans
- Information about the Savings Plans.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsPlans
Information about the Savings Plans.
- Parameters:
savingsPlans
- Information about the Savings Plans.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsPlans
Information about the Savings Plans.
This is a convenience method that creates an instance of theSavingsPlan.Builder
avoiding the need to create one manually viaSavingsPlan.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosavingsPlans(List<SavingsPlan>)
.- Parameters:
savingsPlans
- a consumer that will call methods onSavingsPlan.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to use to retrieve the next page of results. This value is null when there are no more results to return.
- Parameters:
nextToken
- The token to use to retrieve the next page of results. This value is null when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-