Class CfnAssociationPropsMixin.TargetProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ssm.CfnAssociationPropsMixin.TargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssociationPropsMixin.TargetProperty>
- Enclosing interface:
CfnAssociationPropsMixin.TargetProperty
@Stability(Stable)
public static final class CfnAssociationPropsMixin.TargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssociationPropsMixin.TargetProperty>
A builder for
CfnAssociationPropsMixin.TargetProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAssociationPropsMixin.TargetProperty.getKey()Sets the value ofCfnAssociationPropsMixin.TargetProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnAssociationPropsMixin.TargetProperty.getKey()- Parameters:
key- User-defined criteria for sending commands that target managed nodes that meet the criteria.- Returns:
this
-
values
@Stability(Stable) public CfnAssociationPropsMixin.TargetProperty.Builder values(List<? extends Object> values) Sets the value ofCfnAssociationPropsMixin.TargetProperty.getValues()- Parameters:
values- User-defined criteria that maps toKey. For example, if you specifiedtag:ServerRole, you could specifyvalue:WebServerto run a command on instances that include EC2 tags ofServerRole,WebServer.Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssociationPropsMixin.TargetProperty>- Returns:
- a new instance of
CfnAssociationPropsMixin.TargetProperty - Throws:
NullPointerException- if any required attribute was not provided
-