public static final class CfnCapacityReservation.TagSpecificationProperty.Builder
extends java.lang.Object
CfnCapacityReservation.TagSpecificationProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnCapacityReservation.TagSpecificationProperty |
build()
Builds the configured instance.
|
CfnCapacityReservation.TagSpecificationProperty.Builder |
resourceType(java.lang.String resourceType)
Sets the value of
CfnCapacityReservation.TagSpecificationProperty.getResourceType() |
CfnCapacityReservation.TagSpecificationProperty.Builder |
tags(java.util.List<? extends CfnTag> tags)
Sets the value of
CfnCapacityReservation.TagSpecificationProperty.getTags() |
public CfnCapacityReservation.TagSpecificationProperty.Builder resourceType(java.lang.String resourceType)
CfnCapacityReservation.TagSpecificationProperty.getResourceType()
resourceType
- The type of resource to tag.
Specify capacity-reservation
.this
public CfnCapacityReservation.TagSpecificationProperty.Builder tags(java.util.List<? extends CfnTag> tags)
CfnCapacityReservation.TagSpecificationProperty.getTags()
tags
- The tags to apply to the resource.this
public CfnCapacityReservation.TagSpecificationProperty build()
CfnCapacityReservation.TagSpecificationProperty
java.lang.NullPointerException
- if any required attribute was not provided