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.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.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
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
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.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:
-