Interface DescribeSavingsPlanRatesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeSavingsPlanRatesResponse.Builder,,DescribeSavingsPlanRatesResponse> SavingsplansResponse.Builder,SdkBuilder<DescribeSavingsPlanRatesResponse.Builder,,DescribeSavingsPlanRatesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeSavingsPlanRatesResponse
public static interface DescribeSavingsPlanRatesResponse.Builder
extends SavingsplansResponse.Builder, SdkPojo, CopyableBuilder<DescribeSavingsPlanRatesResponse.Builder,DescribeSavingsPlanRatesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to use to retrieve the next page of results.savingsPlanId(String savingsPlanId) The ID of the Savings Plan.searchResults(Collection<SavingsPlanRate> searchResults) Information about the Savings Plan rates.searchResults(Consumer<SavingsPlanRate.Builder>... searchResults) Information about the Savings Plan rates.searchResults(SavingsPlanRate... searchResults) Information about the Savings Plan rates.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.savingsplans.model.SavingsplansResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
savingsPlanId
The ID of the Savings Plan.
- Parameters:
savingsPlanId- The ID of the Savings Plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchResults
Information about the Savings Plan rates.
- Parameters:
searchResults- Information about the Savings Plan rates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchResults
Information about the Savings Plan rates.
- Parameters:
searchResults- Information about the Savings Plan rates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchResults
DescribeSavingsPlanRatesResponse.Builder searchResults(Consumer<SavingsPlanRate.Builder>... searchResults) Information about the Savings Plan rates.
This is a convenience method that creates an instance of theSavingsPlanRate.Builderavoiding the need to create one manually viaSavingsPlanRate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosearchResults(List<SavingsPlanRate>).- Parameters:
searchResults- a consumer that will call methods onSavingsPlanRate.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.
-