Class CfnSpotFleet.SpotFleetTagSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSpotFleet.SpotFleetTagSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSpotFleet.SpotFleetTagSpecificationProperty>
- Enclosing interface:
CfnSpotFleet.SpotFleetTagSpecificationProperty
@Stability(Stable)
public static final class CfnSpotFleet.SpotFleetTagSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSpotFleet.SpotFleetTagSpecificationProperty>
A builder for
CfnSpotFleet.SpotFleetTagSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.resourceType(String resourceType) Sets the value ofCfnSpotFleet.SpotFleetTagSpecificationProperty.getResourceType()Sets the value ofCfnSpotFleet.SpotFleetTagSpecificationProperty.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceType
@Stability(Stable) public CfnSpotFleet.SpotFleetTagSpecificationProperty.Builder resourceType(String resourceType) Sets the value ofCfnSpotFleet.SpotFleetTagSpecificationProperty.getResourceType()- Parameters:
resourceType- The type of resource. Currently, the only resource type that is supported isinstance. To tag the Spot Fleet request on creation, use theTagSpecificationsparameter in[SpotFleetRequestConfigData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetRequestConfigData.html).- Returns:
this
-
tags
@Stability(Stable) public CfnSpotFleet.SpotFleetTagSpecificationProperty.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnSpotFleet.SpotFleetTagSpecificationProperty.getTags()- Parameters:
tags- The tags.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSpotFleet.SpotFleetTagSpecificationProperty>- Returns:
- a new instance of
CfnSpotFleet.SpotFleetTagSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-