Interface UpdateBillingPreferencesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BillingRequest.Builder,Buildable,CopyableBuilder<UpdateBillingPreferencesRequest.Builder,,UpdateBillingPreferencesRequest> SdkBuilder<UpdateBillingPreferencesRequest.Builder,,UpdateBillingPreferencesRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateBillingPreferencesRequest
-
Method Summary
Modifier and TypeMethodDescriptionbillingPreferencesPerKey(Collection<BillingPreferenceForKey> billingPreferencesPerKey) Key/value pairs to apply.billingPreferencesPerKey(Consumer<BillingPreferenceForKey.Builder>... billingPreferencesPerKey) Key/value pairs to apply.billingPreferencesPerKey(BillingPreferenceForKey... billingPreferencesPerKey) Key/value pairs to apply.The feature to update.feature(BillingFeature feature) The feature to update.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.billing.model.BillingRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
feature
The feature to update. Valid values:
BILLING_ALERTS,RI_SHARING,CREDIT_SHARING,CREDIT_LEVEL_SHARING,CREDIT_PREFERENCE_OPTIONS. The history features (RI_SHARING_HISTORYandCREDIT_SHARING_HISTORY) are read-only and cannot be updated.- Parameters:
feature- The feature to update. Valid values:BILLING_ALERTS,RI_SHARING,CREDIT_SHARING,CREDIT_LEVEL_SHARING,CREDIT_PREFERENCE_OPTIONS. The history features (RI_SHARING_HISTORYandCREDIT_SHARING_HISTORY) are read-only and cannot be updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
feature
The feature to update. Valid values:
BILLING_ALERTS,RI_SHARING,CREDIT_SHARING,CREDIT_LEVEL_SHARING,CREDIT_PREFERENCE_OPTIONS. The history features (RI_SHARING_HISTORYandCREDIT_SHARING_HISTORY) are read-only and cannot be updated.- Parameters:
feature- The feature to update. Valid values:BILLING_ALERTS,RI_SHARING,CREDIT_SHARING,CREDIT_LEVEL_SHARING,CREDIT_PREFERENCE_OPTIONS. The history features (RI_SHARING_HISTORYandCREDIT_SHARING_HISTORY) are read-only and cannot be updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
billingPreferencesPerKey
UpdateBillingPreferencesRequest.Builder billingPreferencesPerKey(Collection<BillingPreferenceForKey> billingPreferencesPerKey) Key/value pairs to apply. All keys in a single request must be valid for the specified
featureand must not be duplicated. ForCREDIT_PREFERENCE_OPTIONS, all keys must reference the samecreditId.- Parameters:
billingPreferencesPerKey- Key/value pairs to apply. All keys in a single request must be valid for the specifiedfeatureand must not be duplicated. ForCREDIT_PREFERENCE_OPTIONS, all keys must reference the samecreditId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingPreferencesPerKey
UpdateBillingPreferencesRequest.Builder billingPreferencesPerKey(BillingPreferenceForKey... billingPreferencesPerKey) Key/value pairs to apply. All keys in a single request must be valid for the specified
featureand must not be duplicated. ForCREDIT_PREFERENCE_OPTIONS, all keys must reference the samecreditId.- Parameters:
billingPreferencesPerKey- Key/value pairs to apply. All keys in a single request must be valid for the specifiedfeatureand must not be duplicated. ForCREDIT_PREFERENCE_OPTIONS, all keys must reference the samecreditId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingPreferencesPerKey
UpdateBillingPreferencesRequest.Builder billingPreferencesPerKey(Consumer<BillingPreferenceForKey.Builder>... billingPreferencesPerKey) Key/value pairs to apply. All keys in a single request must be valid for the specified
This is a convenience method that creates an instance of thefeatureand must not be duplicated. ForCREDIT_PREFERENCE_OPTIONS, all keys must reference the samecreditId.BillingPreferenceForKey.Builderavoiding the need to create one manually viaBillingPreferenceForKey.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobillingPreferencesPerKey(List<BillingPreferenceForKey>).- Parameters:
billingPreferencesPerKey- a consumer that will call methods onBillingPreferenceForKey.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateBillingPreferencesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateBillingPreferencesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-