Class ClusterEvents.ECSTaskStateChange.OverridesItem.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecs.events.ClusterEvents.ECSTaskStateChange.OverridesItem.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterEvents.ECSTaskStateChange.OverridesItem>
- Enclosing interface:
ClusterEvents.ECSTaskStateChange.OverridesItem
@Stability(Experimental)
public static final class ClusterEvents.ECSTaskStateChange.OverridesItem.Builder
extends Object
implements software.amazon.jsii.Builder<ClusterEvents.ECSTaskStateChange.OverridesItem>
A builder for
ClusterEvents.ECSTaskStateChange.OverridesItem-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofClusterEvents.ECSTaskStateChange.OverridesItem.getCommand()Sets the value ofClusterEvents.ECSTaskStateChange.OverridesItem.getCpu()environment(List<? extends Map<String, String>> environment) Sets the value ofClusterEvents.ECSTaskStateChange.OverridesItem.getEnvironment()Sets the value ofClusterEvents.ECSTaskStateChange.OverridesItem.getMemory()Sets the value ofClusterEvents.ECSTaskStateChange.OverridesItem.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
command
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.OverridesItem.Builder command(List<String> command) Sets the value ofClusterEvents.ECSTaskStateChange.OverridesItem.getCommand()- Parameters:
command- command property. Specify an array of string values to match this event if the actual value of command is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
cpu
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.OverridesItem.Builder cpu(List<String> cpu) Sets the value ofClusterEvents.ECSTaskStateChange.OverridesItem.getCpu()- Parameters:
cpu- cpu property. Specify an array of string values to match this event if the actual value of cpu is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
environment
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.OverridesItem.Builder environment(List<? extends Map<String, String>> environment) Sets the value ofClusterEvents.ECSTaskStateChange.OverridesItem.getEnvironment()- Parameters:
environment- environment property. Specify an array of string values to match this event if the actual value of environment is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
memory
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.OverridesItem.Builder memory(List<String> memory) Sets the value ofClusterEvents.ECSTaskStateChange.OverridesItem.getMemory()- Parameters:
memory- memory property. Specify an array of string values to match this event if the actual value of memory is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
name
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.OverridesItem.Builder name(List<String> name) Sets the value ofClusterEvents.ECSTaskStateChange.OverridesItem.getName()- Parameters:
name- name property. Specify an array of string values to match this event if the actual value of name is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClusterEvents.ECSTaskStateChange.OverridesItem>- Returns:
- a new instance of
ClusterEvents.ECSTaskStateChange.OverridesItem - Throws:
NullPointerException- if any required attribute was not provided
-