Class FlexCostAllocationPolicyVersion
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FlexCostAllocationPolicyVersion.Builder,FlexCostAllocationPolicyVersion>
Describes a version of a flex cost allocation policy.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final InstantThe date and time when this version of the policy was created.final StringThe description of this version of the policy.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final InstantThe date and time when this version of the policy is expected to apply to network traffic.final StringThe ID of the policy.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()The policy document that defines cost allocation for EC2 instances.The policy document that defines cost allocation for NAT gateways.The type of network resource that the policy applies to.final StringThe type of network resource that the policy applies to.The policy document that defines cost allocation for Amazon VPC peering connections.static Class<? extends FlexCostAllocationPolicyVersion.Builder> final BooleanIndicates whether showback reporting is enabled for this version of the policy.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final Integerversion()The version number.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
fcaPolicyId
-
version
-
networkResourceType
The type of network resource that the policy applies to.
If the service returns an enum value that is not available in the current SDK version,
networkResourceTypewill returnFlexCostAllocationNetworkResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnetworkResourceTypeAsString().- Returns:
- The type of network resource that the policy applies to.
- See Also:
-
networkResourceTypeAsString
The type of network resource that the policy applies to.
If the service returns an enum value that is not available in the current SDK version,
networkResourceTypewill returnFlexCostAllocationNetworkResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnetworkResourceTypeAsString().- Returns:
- The type of network resource that the policy applies to.
- See Also:
-
natFcaPolicyDocument
The policy document that defines cost allocation for NAT gateways.
- Returns:
- The policy document that defines cost allocation for NAT gateways.
-
instanceFcaPolicyDocument
The policy document that defines cost allocation for EC2 instances.
- Returns:
- The policy document that defines cost allocation for EC2 instances.
-
pcxFcaPolicyDocument
The policy document that defines cost allocation for Amazon VPC peering connections.
- Returns:
- The policy document that defines cost allocation for Amazon VPC peering connections.
-
showBackEnabled
Indicates whether showback reporting is enabled for this version of the policy.
- Returns:
- Indicates whether showback reporting is enabled for this version of the policy.
-
description
The description of this version of the policy.
- Returns:
- The description of this version of the policy.
-
expectedEffectiveAt
The date and time when this version of the policy is expected to apply to network traffic.
- Returns:
- The date and time when this version of the policy is expected to apply to network traffic.
-
createdAt
The date and time when this version of the policy was created.
- Returns:
- The date and time when this version of the policy was created.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<FlexCostAllocationPolicyVersion.Builder,FlexCostAllocationPolicyVersion> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-