Class CfnCapacityReservationFleet.TagSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnCapacityReservationFleet.TagSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityReservationFleet.TagSpecificationProperty>
- Enclosing interface:
CfnCapacityReservationFleet.TagSpecificationProperty
@Stability(Stable)
public static final class CfnCapacityReservationFleet.TagSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityReservationFleet.TagSpecificationProperty>
A builder for
CfnCapacityReservationFleet.TagSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.resourceType(String resourceType) Sets the value ofCfnCapacityReservationFleet.TagSpecificationProperty.getResourceType()Sets the value ofCfnCapacityReservationFleet.TagSpecificationProperty.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceType
@Stability(Stable) public CfnCapacityReservationFleet.TagSpecificationProperty.Builder resourceType(String resourceType) Sets the value ofCfnCapacityReservationFleet.TagSpecificationProperty.getResourceType()- Parameters:
resourceType- The type of resource to tag on creation. Specifycapacity-reservation-fleet. To tag a resource after it has been created, see CreateTags .- Returns:
this
-
tags
@Stability(Stable) public CfnCapacityReservationFleet.TagSpecificationProperty.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnCapacityReservationFleet.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<CfnCapacityReservationFleet.TagSpecificationProperty>- Returns:
- a new instance of
CfnCapacityReservationFleet.TagSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-