Class CfnEC2Fleet.TagSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnEC2Fleet.TagSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEC2Fleet.TagSpecificationProperty>
- Enclosing interface:
CfnEC2Fleet.TagSpecificationProperty
@Stability(Stable)
public static final class CfnEC2Fleet.TagSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEC2Fleet.TagSpecificationProperty>
A builder for
CfnEC2Fleet.TagSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.resourceType(String resourceType) Sets the value ofCfnEC2Fleet.TagSpecificationProperty.getResourceType()Sets the value ofCfnEC2Fleet.TagSpecificationProperty.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceType
@Stability(Stable) public CfnEC2Fleet.TagSpecificationProperty.Builder resourceType(String resourceType) Sets the value ofCfnEC2Fleet.TagSpecificationProperty.getResourceType()- Parameters:
resourceType- The type of resource to tag.- Returns:
this
-
tags
@Stability(Stable) public CfnEC2Fleet.TagSpecificationProperty.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnEC2Fleet.TagSpecificationProperty.getTags()- Parameters:
tags- The tags to apply to the resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEC2Fleet.TagSpecificationProperty>- Returns:
- a new instance of
CfnEC2Fleet.TagSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-