Class EBSTagSpecification.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.EBSTagSpecification.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EBSTagSpecification>
- Enclosing interface:
EBSTagSpecification
@Stability(Stable)
public static final class EBSTagSpecification.Builder
extends Object
implements software.amazon.jsii.Builder<EBSTagSpecification>
A builder for
EBSTagSpecification-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.propagateTags(EbsPropagatedTagSource propagateTags) Sets the value ofEBSTagSpecification.getPropagateTags()Sets the value ofEBSTagSpecification.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
propagateTags
@Stability(Stable) public EBSTagSpecification.Builder propagateTags(EbsPropagatedTagSource propagateTags) Sets the value ofEBSTagSpecification.getPropagateTags()- Parameters:
propagateTags- Specifies whether to propagate the tags from the task definition or the service to the task. Valid values are: PropagatedTagSource.SERVICE, PropagatedTagSource.TASK_DEFINITION- Returns:
this
-
tags
Sets the value ofEBSTagSpecification.getTags()- Parameters:
tags- The tags to apply to the volume.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EBSTagSpecification>- Returns:
- a new instance of
EBSTagSpecification - Throws:
NullPointerException- if any required attribute was not provided
-