Class CfnAutoScalingGroup.TagPropertyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.TagPropertyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutoScalingGroup.TagPropertyProperty>
- Enclosing interface:
CfnAutoScalingGroup.TagPropertyProperty
@Stability(Stable)
public static final class CfnAutoScalingGroup.TagPropertyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutoScalingGroup.TagPropertyProperty>
A builder for
CfnAutoScalingGroup.TagPropertyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnAutoScalingGroup.TagPropertyProperty.getKey()
propagateAtLaunch
(Boolean propagateAtLaunch) Sets the value ofCfnAutoScalingGroup.TagPropertyProperty.getPropagateAtLaunch()
propagateAtLaunch
(IResolvable propagateAtLaunch) Sets the value ofCfnAutoScalingGroup.TagPropertyProperty.getPropagateAtLaunch()
Sets the value ofCfnAutoScalingGroup.TagPropertyProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnAutoScalingGroup.TagPropertyProperty.getKey()
- Parameters:
key
- The tag key. This parameter is required.- Returns:
this
-
propagateAtLaunch
@Stability(Stable) public CfnAutoScalingGroup.TagPropertyProperty.Builder propagateAtLaunch(Boolean propagateAtLaunch) Sets the value ofCfnAutoScalingGroup.TagPropertyProperty.getPropagateAtLaunch()
- Parameters:
propagateAtLaunch
- Set totrue
if you want CloudFormation to copy the tag to EC2 instances that are launched as part of the Auto Scaling group. This parameter is required. Set tofalse
if you want the tag attached only to the Auto Scaling group and not copied to any instances launched as part of the Auto Scaling group.- Returns:
this
-
propagateAtLaunch
@Stability(Stable) public CfnAutoScalingGroup.TagPropertyProperty.Builder propagateAtLaunch(IResolvable propagateAtLaunch) Sets the value ofCfnAutoScalingGroup.TagPropertyProperty.getPropagateAtLaunch()
- Parameters:
propagateAtLaunch
- Set totrue
if you want CloudFormation to copy the tag to EC2 instances that are launched as part of the Auto Scaling group. This parameter is required. Set tofalse
if you want the tag attached only to the Auto Scaling group and not copied to any instances launched as part of the Auto Scaling group.- Returns:
this
-
value
Sets the value ofCfnAutoScalingGroup.TagPropertyProperty.getValue()
- Parameters:
value
- The tag value. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAutoScalingGroup.TagPropertyProperty>
- Returns:
- a new instance of
CfnAutoScalingGroup.TagPropertyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-