Class CostAllocationTag
- java.lang.Object
-
- software.amazon.awssdk.services.costexplorer.model.CostAllocationTag
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CostAllocationTag.Builder,CostAllocationTag>
@Generated("software.amazon.awssdk:codegen") public final class CostAllocationTag extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CostAllocationTag.Builder,CostAllocationTag>
The cost allocation tag structure. This includes detailed metadata for the
CostAllocationTagobject.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCostAllocationTag.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CostAllocationTag.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringlastUpdatedDate()The last date that the tag was either activated or deactivated.StringlastUsedDate()The last month that the tag was used on an Amazon Web Services resource.List<SdkField<?>>sdkFields()static Class<? extends CostAllocationTag.Builder>serializableBuilderClass()CostAllocationTagStatusstatus()The status of a cost allocation tag.StringstatusAsString()The status of a cost allocation tag.StringtagKey()The key for the cost allocation tag.CostAllocationTag.BuildertoBuilder()StringtoString()Returns a string representation of this object.CostAllocationTagTypetype()The type of cost allocation tag.StringtypeAsString()The type of cost allocation tag.-
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
-
tagKey
public final String tagKey()
The key for the cost allocation tag.
- Returns:
- The key for the cost allocation tag.
-
type
public final CostAllocationTagType type()
The type of cost allocation tag. You can use
AWSGeneratedorUserDefinedtype tags.AWSGeneratedtype tags are tags that Amazon Web Services defines and applies to support Amazon Web Services resources for cost allocation purposes.UserDefinedtype tags are tags that you define, create, and apply to resources.If the service returns an enum value that is not available in the current SDK version,
typewill returnCostAllocationTagType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of cost allocation tag. You can use
AWSGeneratedorUserDefinedtype tags.AWSGeneratedtype tags are tags that Amazon Web Services defines and applies to support Amazon Web Services resources for cost allocation purposes.UserDefinedtype tags are tags that you define, create, and apply to resources. - See Also:
CostAllocationTagType
-
typeAsString
public final String typeAsString()
The type of cost allocation tag. You can use
AWSGeneratedorUserDefinedtype tags.AWSGeneratedtype tags are tags that Amazon Web Services defines and applies to support Amazon Web Services resources for cost allocation purposes.UserDefinedtype tags are tags that you define, create, and apply to resources.If the service returns an enum value that is not available in the current SDK version,
typewill returnCostAllocationTagType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of cost allocation tag. You can use
AWSGeneratedorUserDefinedtype tags.AWSGeneratedtype tags are tags that Amazon Web Services defines and applies to support Amazon Web Services resources for cost allocation purposes.UserDefinedtype tags are tags that you define, create, and apply to resources. - See Also:
CostAllocationTagType
-
status
public final CostAllocationTagStatus status()
The status of a cost allocation tag.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnCostAllocationTagStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of a cost allocation tag.
- See Also:
CostAllocationTagStatus
-
statusAsString
public final String statusAsString()
The status of a cost allocation tag.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnCostAllocationTagStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of a cost allocation tag.
- See Also:
CostAllocationTagStatus
-
lastUpdatedDate
public final String lastUpdatedDate()
The last date that the tag was either activated or deactivated.
- Returns:
- The last date that the tag was either activated or deactivated.
-
lastUsedDate
public final String lastUsedDate()
The last month that the tag was used on an Amazon Web Services resource.
- Returns:
- The last month that the tag was used on an Amazon Web Services resource.
-
toBuilder
public CostAllocationTag.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CostAllocationTag.Builder,CostAllocationTag>
-
builder
public static CostAllocationTag.Builder builder()
-
serializableBuilderClass
public static Class<? extends CostAllocationTag.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.
-
-