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