@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateTagSpecificationRequest extends Object implements Serializable, Cloneable
The tags specification for the resources that are created during instance launch.
Constructor and Description |
---|
LaunchTemplateTagSpecificationRequest() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateTagSpecificationRequest |
clone() |
boolean |
equals(Object obj) |
String |
getResourceType()
The type of resource to tag.
|
List<Tag> |
getTags()
The tags to apply to the resource.
|
int |
hashCode() |
void |
setResourceType(String resourceType)
The type of resource to tag.
|
void |
setTags(Collection<Tag> tags)
The tags to apply to the resource.
|
String |
toString()
Returns a string representation of this object.
|
LaunchTemplateTagSpecificationRequest |
withResourceType(ResourceType resourceType)
The type of resource to tag.
|
LaunchTemplateTagSpecificationRequest |
withResourceType(String resourceType)
The type of resource to tag.
|
LaunchTemplateTagSpecificationRequest |
withTags(Collection<Tag> tags)
The tags to apply to the resource.
|
LaunchTemplateTagSpecificationRequest |
withTags(Tag... tags)
The tags to apply to the resource.
|
public LaunchTemplateTagSpecificationRequest()
public void setResourceType(String resourceType)
The type of resource to tag.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template, you
can specify tags for the following resource types only: instance
| volume
|
network-interface
| spot-instances-request
. If the instance does not include the
resource type that you specify, the instance launch fails. For example, not all instance types include a volume.
To tag a resource after it has been created, see CreateTags.
resourceType
- The type of resource to tag.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch
template, you can specify tags for the following resource types only: instance
|
volume
| network-interface
| spot-instances-request
. If the
instance does not include the resource type that you specify, the instance launch fails. For example, not
all instance types include a volume.
To tag a resource after it has been created, see CreateTags.
ResourceType
public String getResourceType()
The type of resource to tag.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template, you
can specify tags for the following resource types only: instance
| volume
|
network-interface
| spot-instances-request
. If the instance does not include the
resource type that you specify, the instance launch fails. For example, not all instance types include a volume.
To tag a resource after it has been created, see CreateTags.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch
template, you can specify tags for the following resource types only: instance
|
volume
| network-interface
| spot-instances-request
. If the
instance does not include the resource type that you specify, the instance launch fails. For example, not
all instance types include a volume.
To tag a resource after it has been created, see CreateTags.
ResourceType
public LaunchTemplateTagSpecificationRequest withResourceType(String resourceType)
The type of resource to tag.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template, you
can specify tags for the following resource types only: instance
| volume
|
network-interface
| spot-instances-request
. If the instance does not include the
resource type that you specify, the instance launch fails. For example, not all instance types include a volume.
To tag a resource after it has been created, see CreateTags.
resourceType
- The type of resource to tag.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch
template, you can specify tags for the following resource types only: instance
|
volume
| network-interface
| spot-instances-request
. If the
instance does not include the resource type that you specify, the instance launch fails. For example, not
all instance types include a volume.
To tag a resource after it has been created, see CreateTags.
ResourceType
public LaunchTemplateTagSpecificationRequest withResourceType(ResourceType resourceType)
The type of resource to tag.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template, you
can specify tags for the following resource types only: instance
| volume
|
network-interface
| spot-instances-request
. If the instance does not include the
resource type that you specify, the instance launch fails. For example, not all instance types include a volume.
To tag a resource after it has been created, see CreateTags.
resourceType
- The type of resource to tag.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch
template, you can specify tags for the following resource types only: instance
|
volume
| network-interface
| spot-instances-request
. If the
instance does not include the resource type that you specify, the instance launch fails. For example, not
all instance types include a volume.
To tag a resource after it has been created, see CreateTags.
ResourceType
public List<Tag> getTags()
The tags to apply to the resource.
public void setTags(Collection<Tag> tags)
The tags to apply to the resource.
tags
- The tags to apply to the resource.public LaunchTemplateTagSpecificationRequest withTags(Tag... tags)
The tags to apply to 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 to apply to the resource.public LaunchTemplateTagSpecificationRequest withTags(Collection<Tag> tags)
The tags to apply to the resource.
tags
- The tags to apply to the resource.public String toString()
toString
in class Object
Object.toString()
public LaunchTemplateTagSpecificationRequest clone()