@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateTagSpecification extends Object implements Serializable, Cloneable
The tags specification for the launch template.
Constructor and Description |
---|
LaunchTemplateTagSpecification() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateTagSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getResourceType()
The type of resource to tag.
|
List<Tag> |
getTags()
The tags for the resource.
|
int |
hashCode() |
void |
setResourceType(String resourceType)
The type of resource to tag.
|
void |
setTags(Collection<Tag> tags)
The tags for the resource.
|
String |
toString()
Returns a string representation of this object.
|
LaunchTemplateTagSpecification |
withResourceType(ResourceType resourceType)
The type of resource to tag.
|
LaunchTemplateTagSpecification |
withResourceType(String resourceType)
The type of resource to tag.
|
LaunchTemplateTagSpecification |
withTags(Collection<Tag> tags)
The tags for the resource.
|
LaunchTemplateTagSpecification |
withTags(Tag... tags)
The tags for the resource.
|
public void setResourceType(String resourceType)
The type of resource to tag.
resourceType
- The type of resource to tag.ResourceType
public String getResourceType()
The type of resource to tag.
ResourceType
public LaunchTemplateTagSpecification withResourceType(String resourceType)
The type of resource to tag.
resourceType
- The type of resource to tag.ResourceType
public LaunchTemplateTagSpecification withResourceType(ResourceType resourceType)
The type of resource to tag.
resourceType
- The type of resource to tag.ResourceType
public void setTags(Collection<Tag> tags)
The tags for the resource.
tags
- The tags for the resource.public LaunchTemplateTagSpecification withTags(Tag... tags)
The tags for the resource.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags for the resource.public LaunchTemplateTagSpecification withTags(Collection<Tag> tags)
The tags for the resource.
tags
- The tags for the resource.public String toString()
toString
in class Object
Object.toString()
public LaunchTemplateTagSpecification clone()