Class TransitGatewayMeteringPolicyEntry
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.TransitGatewayMeteringPolicyEntry
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TransitGatewayMeteringPolicyEntry.Builder,TransitGatewayMeteringPolicyEntry>
@Generated("software.amazon.awssdk:codegen") public final class TransitGatewayMeteringPolicyEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TransitGatewayMeteringPolicyEntry.Builder,TransitGatewayMeteringPolicyEntry>
Describes an entry in a transit gateway metering policy.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTransitGatewayMeteringPolicyEntry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransitGatewayMeteringPolicyEntry.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()TransitGatewayMeteringPayerTypemeteredAccount()The Amazon Web Services account ID to which the metered traffic is attributed.StringmeteredAccountAsString()The Amazon Web Services account ID to which the metered traffic is attributed.TransitGatewayMeteringPolicyRulemeteringPolicyRule()The metering policy rule that defines traffic matching criteria.StringpolicyRuleNumber()The rule number of the metering policy entry.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TransitGatewayMeteringPolicyEntry.Builder>serializableBuilderClass()TransitGatewayMeteringPolicyEntryStatestate()The state of the metering policy entry.StringstateAsString()The state of the metering policy entry.TransitGatewayMeteringPolicyEntry.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedAt()The date and time when the metering policy entry was last updated.InstantupdateEffectiveAt()The date and time when the metering policy entry update becomes effective.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
policyRuleNumber
public final String policyRuleNumber()
The rule number of the metering policy entry.
- Returns:
- The rule number of the metering policy entry.
-
meteredAccount
public final TransitGatewayMeteringPayerType meteredAccount()
The Amazon Web Services account ID to which the metered traffic is attributed.
If the service returns an enum value that is not available in the current SDK version,
meteredAccountwill returnTransitGatewayMeteringPayerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommeteredAccountAsString().- Returns:
- The Amazon Web Services account ID to which the metered traffic is attributed.
- See Also:
TransitGatewayMeteringPayerType
-
meteredAccountAsString
public final String meteredAccountAsString()
The Amazon Web Services account ID to which the metered traffic is attributed.
If the service returns an enum value that is not available in the current SDK version,
meteredAccountwill returnTransitGatewayMeteringPayerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommeteredAccountAsString().- Returns:
- The Amazon Web Services account ID to which the metered traffic is attributed.
- See Also:
TransitGatewayMeteringPayerType
-
state
public final TransitGatewayMeteringPolicyEntryState state()
The state of the metering policy entry.
If the service returns an enum value that is not available in the current SDK version,
statewill returnTransitGatewayMeteringPolicyEntryState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the metering policy entry.
- See Also:
TransitGatewayMeteringPolicyEntryState
-
stateAsString
public final String stateAsString()
The state of the metering policy entry.
If the service returns an enum value that is not available in the current SDK version,
statewill returnTransitGatewayMeteringPolicyEntryState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the metering policy entry.
- See Also:
TransitGatewayMeteringPolicyEntryState
-
updatedAt
public final Instant updatedAt()
The date and time when the metering policy entry was last updated.
- Returns:
- The date and time when the metering policy entry was last updated.
-
updateEffectiveAt
public final Instant updateEffectiveAt()
The date and time when the metering policy entry update becomes effective.
- Returns:
- The date and time when the metering policy entry update becomes effective.
-
meteringPolicyRule
public final TransitGatewayMeteringPolicyRule meteringPolicyRule()
The metering policy rule that defines traffic matching criteria.
- Returns:
- The metering policy rule that defines traffic matching criteria.
-
toBuilder
public TransitGatewayMeteringPolicyEntry.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TransitGatewayMeteringPolicyEntry.Builder,TransitGatewayMeteringPolicyEntry>
-
builder
public static TransitGatewayMeteringPolicyEntry.Builder builder()
-
serializableBuilderClass
public static Class<? extends TransitGatewayMeteringPolicyEntry.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-