Class CfnService.EBSTagSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnService.EBSTagSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.EBSTagSpecificationProperty>
- Enclosing interface:
CfnService.EBSTagSpecificationProperty
@Stability(Stable)
public static final class CfnService.EBSTagSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.EBSTagSpecificationProperty>
A builder for
CfnService.EBSTagSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.propagateTags(String propagateTags) Sets the value ofCfnService.EBSTagSpecificationProperty.getPropagateTags()resourceType(String resourceType) Sets the value ofCfnService.EBSTagSpecificationProperty.getResourceType()Sets the value ofCfnService.EBSTagSpecificationProperty.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceType
@Stability(Stable) public CfnService.EBSTagSpecificationProperty.Builder resourceType(String resourceType) Sets the value ofCfnService.EBSTagSpecificationProperty.getResourceType()- Parameters:
resourceType- The type of volume resource. This parameter is required.- Returns:
this
-
propagateTags
@Stability(Stable) public CfnService.EBSTagSpecificationProperty.Builder propagateTags(String propagateTags) Sets the value ofCfnService.EBSTagSpecificationProperty.getPropagateTags()- Parameters:
propagateTags- Determines whether to propagate the tags from the task definition to the Amazon EBS volume. Tags can only propagate to aSERVICEspecified inServiceVolumeConfiguration. If no value is specified, the tags aren't propagated.- Returns:
this
-
tags
@Stability(Stable) public CfnService.EBSTagSpecificationProperty.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnService.EBSTagSpecificationProperty.getTags()- Parameters:
tags- The tags applied to this Amazon EBS volume.AmazonECSCreatedandAmazonECSManagedare reserved tags that can't be used.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.EBSTagSpecificationProperty>- Returns:
- a new instance of
CfnService.EBSTagSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-