@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CostAllocationTag extends Object implements Serializable, Cloneable, StructuredPojo
The cost allocation tag structure. This includes detailed metadata for the CostAllocationTag object.
| Constructor and Description |
|---|
CostAllocationTag() |
| Modifier and Type | Method and Description |
|---|---|
CostAllocationTag |
clone() |
boolean |
equals(Object obj) |
String |
getLastUpdatedDate()
The last date that the tag was either activated or deactivated.
|
String |
getLastUsedDate()
The last month that the tag was used on an Amazon Web Services resource.
|
String |
getStatus()
The status of a cost allocation tag.
|
String |
getTagKey()
The key for the cost allocation tag.
|
String |
getType()
The type of cost allocation tag.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setLastUpdatedDate(String lastUpdatedDate)
The last date that the tag was either activated or deactivated.
|
void |
setLastUsedDate(String lastUsedDate)
The last month that the tag was used on an Amazon Web Services resource.
|
void |
setStatus(String status)
The status of a cost allocation tag.
|
void |
setTagKey(String tagKey)
The key for the cost allocation tag.
|
void |
setType(String type)
The type of cost allocation tag.
|
String |
toString()
Returns a string representation of this object.
|
CostAllocationTag |
withLastUpdatedDate(String lastUpdatedDate)
The last date that the tag was either activated or deactivated.
|
CostAllocationTag |
withLastUsedDate(String lastUsedDate)
The last month that the tag was used on an Amazon Web Services resource.
|
CostAllocationTag |
withStatus(CostAllocationTagStatus status)
The status of a cost allocation tag.
|
CostAllocationTag |
withStatus(String status)
The status of a cost allocation tag.
|
CostAllocationTag |
withTagKey(String tagKey)
The key for the cost allocation tag.
|
CostAllocationTag |
withType(CostAllocationTagType type)
The type of cost allocation tag.
|
CostAllocationTag |
withType(String type)
The type of cost allocation tag.
|
public void setTagKey(String tagKey)
The key for the cost allocation tag.
tagKey - The key for the cost allocation tag.public String getTagKey()
The key for the cost allocation tag.
public CostAllocationTag withTagKey(String tagKey)
The key for the cost allocation tag.
tagKey - The key for the cost allocation tag.public void setType(String type)
The type of cost allocation tag. You can use AWSGenerated or UserDefined type tags.
AWSGenerated type tags are tags that Amazon Web Services defines and applies to support Amazon Web
Services resources for cost allocation purposes. UserDefined type tags are tags that you define,
create, and apply to resources.
type - The type of cost allocation tag. You can use AWSGenerated or UserDefined type
tags. AWSGenerated type tags are tags that Amazon Web Services defines and applies to support
Amazon Web Services resources for cost allocation purposes. UserDefined type tags are tags
that you define, create, and apply to resources.CostAllocationTagTypepublic String getType()
The type of cost allocation tag. You can use AWSGenerated or UserDefined type tags.
AWSGenerated type tags are tags that Amazon Web Services defines and applies to support Amazon Web
Services resources for cost allocation purposes. UserDefined type tags are tags that you define,
create, and apply to resources.
AWSGenerated or UserDefined type
tags. AWSGenerated type tags are tags that Amazon Web Services defines and applies to
support Amazon Web Services resources for cost allocation purposes. UserDefined type tags
are tags that you define, create, and apply to resources.CostAllocationTagTypepublic CostAllocationTag withType(String type)
The type of cost allocation tag. You can use AWSGenerated or UserDefined type tags.
AWSGenerated type tags are tags that Amazon Web Services defines and applies to support Amazon Web
Services resources for cost allocation purposes. UserDefined type tags are tags that you define,
create, and apply to resources.
type - The type of cost allocation tag. You can use AWSGenerated or UserDefined type
tags. AWSGenerated type tags are tags that Amazon Web Services defines and applies to support
Amazon Web Services resources for cost allocation purposes. UserDefined type tags are tags
that you define, create, and apply to resources.CostAllocationTagTypepublic CostAllocationTag withType(CostAllocationTagType type)
The type of cost allocation tag. You can use AWSGenerated or UserDefined type tags.
AWSGenerated type tags are tags that Amazon Web Services defines and applies to support Amazon Web
Services resources for cost allocation purposes. UserDefined type tags are tags that you define,
create, and apply to resources.
type - The type of cost allocation tag. You can use AWSGenerated or UserDefined type
tags. AWSGenerated type tags are tags that Amazon Web Services defines and applies to support
Amazon Web Services resources for cost allocation purposes. UserDefined type tags are tags
that you define, create, and apply to resources.CostAllocationTagTypepublic void setStatus(String status)
The status of a cost allocation tag.
status - The status of a cost allocation tag.CostAllocationTagStatuspublic String getStatus()
The status of a cost allocation tag.
CostAllocationTagStatuspublic CostAllocationTag withStatus(String status)
The status of a cost allocation tag.
status - The status of a cost allocation tag.CostAllocationTagStatuspublic CostAllocationTag withStatus(CostAllocationTagStatus status)
The status of a cost allocation tag.
status - The status of a cost allocation tag.CostAllocationTagStatuspublic void setLastUpdatedDate(String lastUpdatedDate)
The last date that the tag was either activated or deactivated.
lastUpdatedDate - The last date that the tag was either activated or deactivated.public String getLastUpdatedDate()
The last date that the tag was either activated or deactivated.
public CostAllocationTag withLastUpdatedDate(String lastUpdatedDate)
The last date that the tag was either activated or deactivated.
lastUpdatedDate - The last date that the tag was either activated or deactivated.public void setLastUsedDate(String lastUsedDate)
The last month that the tag was used on an Amazon Web Services resource.
lastUsedDate - The last month that the tag was used on an Amazon Web Services resource.public String getLastUsedDate()
The last month that the tag was used on an Amazon Web Services resource.
public CostAllocationTag withLastUsedDate(String lastUsedDate)
The last month that the tag was used on an Amazon Web Services resource.
lastUsedDate - The last month that the tag was used on an Amazon Web Services resource.public String toString()
toString in class ObjectObject.toString()public CostAllocationTag clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2025. All rights reserved.