Interface GetPreferencesResponse.Builder
- All Superinterfaces:
 AwsResponse.Builder,Buildable,CopyableBuilder<GetPreferencesResponse.Builder,,GetPreferencesResponse> CostOptimizationHubResponse.Builder,SdkBuilder<GetPreferencesResponse.Builder,,GetPreferencesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
 GetPreferencesResponse
- 
Method Summary
Modifier and TypeMethodDescriptionmemberAccountDiscountVisibility(String memberAccountDiscountVisibility) Retrieves the status of the "member account discount visibility" preference.memberAccountDiscountVisibility(MemberAccountDiscountVisibility memberAccountDiscountVisibility) Retrieves the status of the "member account discount visibility" preference.default GetPreferencesResponse.BuilderpreferredCommitment(Consumer<PreferredCommitment.Builder> preferredCommitment) Retrieves the current preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.preferredCommitment(PreferredCommitment preferredCommitment) Retrieves the current preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.savingsEstimationMode(String savingsEstimationMode) Retrieves the status of the "savings estimation mode" preference.savingsEstimationMode(SavingsEstimationMode savingsEstimationMode) Retrieves the status of the "savings estimation mode" preference.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.costoptimizationhub.model.CostOptimizationHubResponse.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
- 
savingsEstimationMode
Retrieves the status of the "savings estimation mode" preference.
- Parameters:
 savingsEstimationMode- Retrieves the status of the "savings estimation mode" preference.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
savingsEstimationMode
Retrieves the status of the "savings estimation mode" preference.
- Parameters:
 savingsEstimationMode- Retrieves the status of the "savings estimation mode" preference.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
memberAccountDiscountVisibility
GetPreferencesResponse.Builder memberAccountDiscountVisibility(String memberAccountDiscountVisibility) Retrieves the status of the "member account discount visibility" preference.
- Parameters:
 memberAccountDiscountVisibility- Retrieves the status of the "member account discount visibility" preference.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
memberAccountDiscountVisibility
GetPreferencesResponse.Builder memberAccountDiscountVisibility(MemberAccountDiscountVisibility memberAccountDiscountVisibility) Retrieves the status of the "member account discount visibility" preference.
- Parameters:
 memberAccountDiscountVisibility- Retrieves the status of the "member account discount visibility" preference.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
preferredCommitment
Retrieves the current preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.
- Parameters:
 preferredCommitment- Retrieves the current preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
preferredCommitment
default GetPreferencesResponse.Builder preferredCommitment(Consumer<PreferredCommitment.Builder> preferredCommitment) Retrieves the current preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.
This is a convenience method that creates an instance of thePreferredCommitment.Builderavoiding the need to create one manually viaPreferredCommitment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topreferredCommitment(PreferredCommitment).- Parameters:
 preferredCommitment- a consumer that will call methods onPreferredCommitment.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 
 -