Interface UpdatePreferencesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<UpdatePreferencesResponse.Builder,
,UpdatePreferencesResponse> CostOptimizationHubResponse.Builder
,SdkBuilder<UpdatePreferencesResponse.Builder,
,UpdatePreferencesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
UpdatePreferencesResponse
-
Method Summary
Modifier and TypeMethodDescriptionmemberAccountDiscountVisibility
(String memberAccountDiscountVisibility) Shows the status of the "member account discount visibility" preference.memberAccountDiscountVisibility
(MemberAccountDiscountVisibility memberAccountDiscountVisibility) Shows the status of the "member account discount visibility" preference.preferredCommitment
(Consumer<PreferredCommitment.Builder> preferredCommitment) Shows the updated preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.preferredCommitment
(PreferredCommitment preferredCommitment) Shows the updated preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.savingsEstimationMode
(String savingsEstimationMode) Shows the status of the "savings estimation mode" preference.savingsEstimationMode
(SavingsEstimationMode savingsEstimationMode) Shows the status of the "savings estimation mode" preference.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.costoptimizationhub.model.CostOptimizationHubResponse.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
savingsEstimationMode
Shows the status of the "savings estimation mode" preference.
- Parameters:
savingsEstimationMode
- Shows 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
UpdatePreferencesResponse.Builder savingsEstimationMode(SavingsEstimationMode savingsEstimationMode) Shows the status of the "savings estimation mode" preference.
- Parameters:
savingsEstimationMode
- Shows 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
UpdatePreferencesResponse.Builder memberAccountDiscountVisibility(String memberAccountDiscountVisibility) Shows the status of the "member account discount visibility" preference.
- Parameters:
memberAccountDiscountVisibility
- Shows 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
UpdatePreferencesResponse.Builder memberAccountDiscountVisibility(MemberAccountDiscountVisibility memberAccountDiscountVisibility) Shows the status of the "member account discount visibility" preference.
- Parameters:
memberAccountDiscountVisibility
- Shows 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
Shows the updated preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.
- Parameters:
preferredCommitment
- Shows the updated 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 UpdatePreferencesResponse.Builder preferredCommitment(Consumer<PreferredCommitment.Builder> preferredCommitment) Shows the updated 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.Builder
avoiding the need to create one manually viaPreferredCommitment.builder()
.When the
Consumer
completes,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:
-