Interface UpdatePreferencesRequest.Builder
- All Superinterfaces:
- AwsRequest.Builder,- Buildable,- CopyableBuilder<UpdatePreferencesRequest.Builder,,- UpdatePreferencesRequest> - CostOptimizationHubRequest.Builder,- SdkBuilder<UpdatePreferencesRequest.Builder,,- UpdatePreferencesRequest> - SdkPojo,- SdkRequest.Builder
- Enclosing class:
- UpdatePreferencesRequest
@Mutable
@NotThreadSafe
public static interface UpdatePreferencesRequest.Builder
extends CostOptimizationHubRequest.Builder, SdkPojo, CopyableBuilder<UpdatePreferencesRequest.Builder,UpdatePreferencesRequest> 
- 
Method SummaryModifier and TypeMethodDescriptionmemberAccountDiscountVisibility(String memberAccountDiscountVisibility) Sets the "member account discount visibility" preference.memberAccountDiscountVisibility(MemberAccountDiscountVisibility memberAccountDiscountVisibility) Sets the "member account discount visibility" preference.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default UpdatePreferencesRequest.BuilderpreferredCommitment(Consumer<PreferredCommitment.Builder> preferredCommitment) Sets the preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.preferredCommitment(PreferredCommitment preferredCommitment) Sets the preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.savingsEstimationMode(String savingsEstimationMode) Sets the "savings estimation mode" preference.savingsEstimationMode(SavingsEstimationMode savingsEstimationMode) Sets the "savings estimation mode" preference.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.BuilderoverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.services.costoptimizationhub.model.CostOptimizationHubRequest.BuilderbuildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
savingsEstimationModeSets the "savings estimation mode" preference. - Parameters:
- savingsEstimationMode- Sets the "savings estimation mode" preference.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
savingsEstimationModeSets the "savings estimation mode" preference. - Parameters:
- savingsEstimationMode- Sets the "savings estimation mode" preference.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
memberAccountDiscountVisibilityUpdatePreferencesRequest.Builder memberAccountDiscountVisibility(String memberAccountDiscountVisibility) Sets the "member account discount visibility" preference. - Parameters:
- memberAccountDiscountVisibility- Sets the "member account discount visibility" preference.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
memberAccountDiscountVisibilityUpdatePreferencesRequest.Builder memberAccountDiscountVisibility(MemberAccountDiscountVisibility memberAccountDiscountVisibility) Sets the "member account discount visibility" preference. - Parameters:
- memberAccountDiscountVisibility- Sets the "member account discount visibility" preference.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
preferredCommitmentSets the preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length. - Parameters:
- preferredCommitment- Sets the 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.
 
- 
preferredCommitmentdefault UpdatePreferencesRequest.Builder preferredCommitment(Consumer<PreferredCommitment.Builder> preferredCommitment) Sets the 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 on- PreferredCommitment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
overrideConfigurationUpdatePreferencesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- overrideConfiguration- The override configuration.
- Returns:
- This object for method chaining.
 
- 
overrideConfigurationUpdatePreferencesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- builderConsumer- A- Consumerto which an empty- AwsRequestOverrideConfiguration.Builderwill be given.
- Returns:
- This object for method chaining.
 
 
-