Class ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecs.events.ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterEvents.ECSTaskStateChange.ContainerDetails>
- Enclosing interface:
ClusterEvents.ECSTaskStateChange.ContainerDetails
@Stability(Experimental)
public static final class ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder
extends Object
implements software.amazon.jsii.Builder<ClusterEvents.ECSTaskStateChange.ContainerDetails>
A builder for
ClusterEvents.ECSTaskStateChange.ContainerDetails-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerArn(List<String> containerArn) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getContainerArn()Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getCpu()Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getExitCode()Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getGpuIds()Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getImage()imageDigest(List<String> imageDigest) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getImageDigest()lastStatus(List<String> lastStatus) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getLastStatus()Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getMemory()memoryReservation(List<String> memoryReservation) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getMemoryReservation()Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getName()networkBindings(List<? extends ClusterEvents.ECSTaskStateChange.NetworkBindingDetails> networkBindings) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getNetworkBindings()networkInterfaces(List<? extends ClusterEvents.ECSTaskStateChange.NetworkInterfaceDetails> networkInterfaces) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getNetworkInterfaces()Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getReason()Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getRuntimeId()Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getTaskArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerArn
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder containerArn(List<String> containerArn) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getContainerArn()- Parameters:
containerArn- containerArn property. Specify an array of string values to match this event if the actual value of containerArn 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.ContainerDetails.Builder cpu(List<String> cpu) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.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
-
exitCode
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder exitCode(List<String> exitCode) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getExitCode()- Parameters:
exitCode- exitCode property. Specify an array of string values to match this event if the actual value of exitCode is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
gpuIds
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder gpuIds(List<String> gpuIds) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getGpuIds()- Parameters:
gpuIds- gpuIds property. Specify an array of string values to match this event if the actual value of gpuIds is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
image
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder image(List<String> image) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getImage()- Parameters:
image- image property. Specify an array of string values to match this event if the actual value of image is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
imageDigest
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder imageDigest(List<String> imageDigest) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getImageDigest()- Parameters:
imageDigest- imageDigest property. Specify an array of string values to match this event if the actual value of imageDigest is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
lastStatus
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder lastStatus(List<String> lastStatus) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getLastStatus()- Parameters:
lastStatus- lastStatus property. Specify an array of string values to match this event if the actual value of lastStatus 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.ContainerDetails.Builder memory(List<String> memory) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.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
-
memoryReservation
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder memoryReservation(List<String> memoryReservation) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getMemoryReservation()- Parameters:
memoryReservation- memoryReservation property. Specify an array of string values to match this event if the actual value of memoryReservation 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.ContainerDetails.Builder name(List<String> name) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.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
-
networkBindings
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder networkBindings(List<? extends ClusterEvents.ECSTaskStateChange.NetworkBindingDetails> networkBindings) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getNetworkBindings()- Parameters:
networkBindings- networkBindings property. Specify an array of string values to match this event if the actual value of networkBindings is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
networkInterfaces
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder networkInterfaces(List<? extends ClusterEvents.ECSTaskStateChange.NetworkInterfaceDetails> networkInterfaces) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getNetworkInterfaces()- Parameters:
networkInterfaces- networkInterfaces property. Specify an array of string values to match this event if the actual value of networkInterfaces is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
reason
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder reason(List<String> reason) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getReason()- Parameters:
reason- reason property. Specify an array of string values to match this event if the actual value of reason is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
runtimeId
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder runtimeId(List<String> runtimeId) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getRuntimeId()- Parameters:
runtimeId- runtimeId property. Specify an array of string values to match this event if the actual value of runtimeId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
taskArn
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ContainerDetails.Builder taskArn(List<String> taskArn) Sets the value ofClusterEvents.ECSTaskStateChange.ContainerDetails.getTaskArn()- Parameters:
taskArn- taskArn property. Specify an array of string values to match this event if the actual value of taskArn 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.ContainerDetails>- Returns:
- a new instance of
ClusterEvents.ECSTaskStateChange.ContainerDetails - Throws:
NullPointerException- if any required attribute was not provided
-