@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SpotFleetTagSpecification extends Object implements Serializable, Cloneable
The tags for a Spot Fleet resource.
Constructor and Description |
---|
SpotFleetTagSpecification() |
Modifier and Type | Method and Description |
---|---|
SpotFleetTagSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getResourceType()
The type of resource.
|
List<Tag> |
getTags()
The tags.
|
int |
hashCode() |
void |
setResourceType(ResourceType resourceType)
The type of resource.
|
void |
setResourceType(String resourceType)
The type of resource.
|
void |
setTags(Collection<Tag> tags)
The tags.
|
String |
toString()
Returns a string representation of this object.
|
SpotFleetTagSpecification |
withResourceType(ResourceType resourceType)
The type of resource.
|
SpotFleetTagSpecification |
withResourceType(String resourceType)
The type of resource.
|
SpotFleetTagSpecification |
withTags(Collection<Tag> tags)
The tags.
|
SpotFleetTagSpecification |
withTags(Tag... tags)
The tags.
|
public void setResourceType(String resourceType)
The type of resource. Currently, the only resource type that is supported is instance
. To tag the
Spot Fleet request on creation, use the TagSpecifications
parameter in
SpotFleetRequestConfigData
.
resourceType
- The type of resource. Currently, the only resource type that is supported is instance
. To tag
the Spot Fleet request on creation, use the TagSpecifications
parameter in
SpotFleetRequestConfigData
.ResourceType
public String getResourceType()
The type of resource. Currently, the only resource type that is supported is instance
. To tag the
Spot Fleet request on creation, use the TagSpecifications
parameter in
SpotFleetRequestConfigData
.
instance
. To
tag the Spot Fleet request on creation, use the TagSpecifications
parameter in
SpotFleetRequestConfigData
.ResourceType
public SpotFleetTagSpecification withResourceType(String resourceType)
The type of resource. Currently, the only resource type that is supported is instance
. To tag the
Spot Fleet request on creation, use the TagSpecifications
parameter in
SpotFleetRequestConfigData
.
resourceType
- The type of resource. Currently, the only resource type that is supported is instance
. To tag
the Spot Fleet request on creation, use the TagSpecifications
parameter in
SpotFleetRequestConfigData
.ResourceType
public void setResourceType(ResourceType resourceType)
The type of resource. Currently, the only resource type that is supported is instance
. To tag the
Spot Fleet request on creation, use the TagSpecifications
parameter in
SpotFleetRequestConfigData
.
resourceType
- The type of resource. Currently, the only resource type that is supported is instance
. To tag
the Spot Fleet request on creation, use the TagSpecifications
parameter in
SpotFleetRequestConfigData
.ResourceType
public SpotFleetTagSpecification withResourceType(ResourceType resourceType)
The type of resource. Currently, the only resource type that is supported is instance
. To tag the
Spot Fleet request on creation, use the TagSpecifications
parameter in
SpotFleetRequestConfigData
.
resourceType
- The type of resource. Currently, the only resource type that is supported is instance
. To tag
the Spot Fleet request on creation, use the TagSpecifications
parameter in
SpotFleetRequestConfigData
.ResourceType
public void setTags(Collection<Tag> tags)
The tags.
tags
- The tags.public SpotFleetTagSpecification withTags(Tag... tags)
The tags.
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.public SpotFleetTagSpecification withTags(Collection<Tag> tags)
The tags.
tags
- The tags.public String toString()
toString
in class Object
Object.toString()
public SpotFleetTagSpecification clone()