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