Interface BillingPreferenceSummary.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<BillingPreferenceSummary.Builder,,BillingPreferenceSummary> SdkBuilder<BillingPreferenceSummary.Builder,,BillingPreferenceSummary> SdkPojo
- Enclosing class:
BillingPreferenceSummary
-
Method Summary
Modifier and TypeMethodDescriptionThe associated Amazon Web Services account ID.accountName(String accountName) The display name of the account.default BillingPreferenceSummary.BuilderbillingPeriod(Consumer<BillingPeriod.Builder> billingPeriod) The billing period associated with the preference change.billingPeriod(BillingPeriod billingPeriod) The billing period associated with the preference change.The feature this preference belongs to.feature(BillingFeature feature) The feature this preference belongs to.The preference key.The preference value.value(PreferenceValue value) The preference value.Methods 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 this preference belongs to.
- Parameters:
feature- The feature this preference belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
feature
The feature this preference belongs to.
- Parameters:
feature- The feature this preference belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
key
The preference key. Format depends on the feature.
- Parameters:
key- The preference key. Format depends on the feature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The preference value. Valid values:
ENABLEDorDISABLED.- Parameters:
value- The preference value. Valid values:ENABLEDorDISABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
value
The preference value. Valid values:
ENABLEDorDISABLED.- Parameters:
value- The preference value. Valid values:ENABLEDorDISABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accountName
The display name of the account. Populated together with
accountId;nullotherwise.- Parameters:
accountName- The display name of the account. Populated together withaccountId;nullotherwise.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The associated Amazon Web Services account ID. Populated for account-list keys;
nullotherwise.- Parameters:
accountId- The associated Amazon Web Services account ID. Populated for account-list keys;nullotherwise.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingPeriod
The billing period associated with the preference change. Populated only for the history features
RI_SHARING_HISTORYandCREDIT_SHARING_HISTORY.- Parameters:
billingPeriod- The billing period associated with the preference change. Populated only for the history featuresRI_SHARING_HISTORYandCREDIT_SHARING_HISTORY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingPeriod
default BillingPreferenceSummary.Builder billingPeriod(Consumer<BillingPeriod.Builder> billingPeriod) The billing period associated with the preference change. Populated only for the history features
This is a convenience method that creates an instance of theRI_SHARING_HISTORYandCREDIT_SHARING_HISTORY.BillingPeriod.Builderavoiding the need to create one manually viaBillingPeriod.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobillingPeriod(BillingPeriod).- Parameters:
billingPeriod- a consumer that will call methods onBillingPeriod.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-