Interface SpotFleetTagSpecification.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<SpotFleetTagSpecification.Builder,SpotFleetTagSpecification>
,SdkBuilder<SpotFleetTagSpecification.Builder,SpotFleetTagSpecification>
,SdkPojo
- Enclosing class:
- SpotFleetTagSpecification
public static interface SpotFleetTagSpecification.Builder extends SdkPojo, CopyableBuilder<SpotFleetTagSpecification.Builder,SpotFleetTagSpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SpotFleetTagSpecification.Builder
resourceType(String resourceType)
The type of resource.SpotFleetTagSpecification.Builder
resourceType(ResourceType resourceType)
The type of resource.SpotFleetTagSpecification.Builder
tags(Collection<Tag> tags)
The tags.SpotFleetTagSpecification.Builder
tags(Consumer<Tag.Builder>... tags)
The tags.SpotFleetTagSpecification.Builder
tags(Tag... tags)
The tags.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
resourceType
SpotFleetTagSpecification.Builder resourceType(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 theTagSpecifications
parameter inSpotFleetRequestConfigData
.- Parameters:
resourceType
- The type of resource. Currently, the only resource type that is supported isinstance
. To tag the Spot Fleet request on creation, use theTagSpecifications
parameter inSpotFleetRequestConfigData
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType
,ResourceType
-
resourceType
SpotFleetTagSpecification.Builder resourceType(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 theTagSpecifications
parameter inSpotFleetRequestConfigData
.- Parameters:
resourceType
- The type of resource. Currently, the only resource type that is supported isinstance
. To tag the Spot Fleet request on creation, use theTagSpecifications
parameter inSpotFleetRequestConfigData
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType
,ResourceType
-
tags
SpotFleetTagSpecification.Builder tags(Collection<Tag> tags)
The tags.
- Parameters:
tags
- The tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
SpotFleetTagSpecification.Builder tags(Tag... tags)
The tags.
- Parameters:
tags
- The tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
SpotFleetTagSpecification.Builder tags(Consumer<Tag.Builder>... tags)
The tags.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tags(List
.) - Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection
)
-
-