Interface TransitGatewayMeteringPolicyEntry.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TransitGatewayMeteringPolicyEntry.Builder,,TransitGatewayMeteringPolicyEntry> SdkBuilder<TransitGatewayMeteringPolicyEntry.Builder,,TransitGatewayMeteringPolicyEntry> SdkPojo
- Enclosing class:
TransitGatewayMeteringPolicyEntry
@Mutable
@NotThreadSafe
public static interface TransitGatewayMeteringPolicyEntry.Builder
extends SdkPojo, CopyableBuilder<TransitGatewayMeteringPolicyEntry.Builder,TransitGatewayMeteringPolicyEntry>
-
Method Summary
Modifier and TypeMethodDescriptionmeteredAccount(String meteredAccount) The Amazon Web Services account ID to which the metered traffic is attributed.meteredAccount(TransitGatewayMeteringPayerType meteredAccount) The Amazon Web Services account ID to which the metered traffic is attributed.meteringPolicyRule(Consumer<TransitGatewayMeteringPolicyRule.Builder> meteringPolicyRule) The metering policy rule that defines traffic matching criteria.meteringPolicyRule(TransitGatewayMeteringPolicyRule meteringPolicyRule) The metering policy rule that defines traffic matching criteria.policyRuleNumber(String policyRuleNumber) The rule number of the metering policy entry.The state of the metering policy entry.The state of the metering policy entry.The date and time when the metering policy entry was last updated.updateEffectiveAt(Instant updateEffectiveAt) The date and time when the metering policy entry update becomes effective.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
-
policyRuleNumber
The rule number of the metering policy entry.
- Parameters:
policyRuleNumber- The rule number of the metering policy entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
meteredAccount
The Amazon Web Services account ID to which the metered traffic is attributed.
- Parameters:
meteredAccount- The Amazon Web Services account ID to which the metered traffic is attributed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
meteredAccount
TransitGatewayMeteringPolicyEntry.Builder meteredAccount(TransitGatewayMeteringPayerType meteredAccount) The Amazon Web Services account ID to which the metered traffic is attributed.
- Parameters:
meteredAccount- The Amazon Web Services account ID to which the metered traffic is attributed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the metering policy entry.
- Parameters:
state- The state of the metering policy entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the metering policy entry.
- Parameters:
state- The state of the metering policy entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
updatedAt
The date and time when the metering policy entry was last updated.
- Parameters:
updatedAt- The date and time when the metering policy entry was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateEffectiveAt
The date and time when the metering policy entry update becomes effective.
- Parameters:
updateEffectiveAt- The date and time when the metering policy entry update becomes effective.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
meteringPolicyRule
TransitGatewayMeteringPolicyEntry.Builder meteringPolicyRule(TransitGatewayMeteringPolicyRule meteringPolicyRule) The metering policy rule that defines traffic matching criteria.
- Parameters:
meteringPolicyRule- The metering policy rule that defines traffic matching criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
meteringPolicyRule
default TransitGatewayMeteringPolicyEntry.Builder meteringPolicyRule(Consumer<TransitGatewayMeteringPolicyRule.Builder> meteringPolicyRule) The metering policy rule that defines traffic matching criteria.
This is a convenience method that creates an instance of theTransitGatewayMeteringPolicyRule.Builderavoiding the need to create one manually viaTransitGatewayMeteringPolicyRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometeringPolicyRule(TransitGatewayMeteringPolicyRule).- Parameters:
meteringPolicyRule- a consumer that will call methods onTransitGatewayMeteringPolicyRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-