Interface DescribeSavingsPlansOfferingsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeSavingsPlansOfferingsResponse.Builder,,DescribeSavingsPlansOfferingsResponse> SavingsplansResponse.Builder,SdkBuilder<DescribeSavingsPlansOfferingsResponse.Builder,,DescribeSavingsPlansOfferingsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeSavingsPlansOfferingsResponse
public static interface DescribeSavingsPlansOfferingsResponse.Builder
extends SavingsplansResponse.Builder, SdkPojo, CopyableBuilder<DescribeSavingsPlansOfferingsResponse.Builder,DescribeSavingsPlansOfferingsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to use to retrieve the next page of results.searchResults(Collection<SavingsPlanOffering> searchResults) Information about the Savings Plans offerings.searchResults(Consumer<SavingsPlanOffering.Builder>... searchResults) Information about the Savings Plans offerings.searchResults(SavingsPlanOffering... searchResults) Information about the Savings Plans offerings.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
-
searchResults
DescribeSavingsPlansOfferingsResponse.Builder searchResults(Collection<SavingsPlanOffering> searchResults) Information about the Savings Plans offerings.
- Parameters:
searchResults- Information about the Savings Plans offerings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchResults
Information about the Savings Plans offerings.
- Parameters:
searchResults- Information about the Savings Plans offerings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchResults
DescribeSavingsPlansOfferingsResponse.Builder searchResults(Consumer<SavingsPlanOffering.Builder>... searchResults) Information about the Savings Plans offerings.
This is a convenience method that creates an instance of theSavingsPlanOffering.Builderavoiding the need to create one manually viaSavingsPlanOffering.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosearchResults(List<SavingsPlanOffering>).- Parameters:
searchResults- a consumer that will call methods onSavingsPlanOffering.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.
-