Class ECSTaskStateChange.ContainerDetails.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecs.events.ECSTaskStateChange.ContainerDetails.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ECSTaskStateChange.ContainerDetails>
- Enclosing interface:
ECSTaskStateChange.ContainerDetails
@Stability(Experimental)
public static final class ECSTaskStateChange.ContainerDetails.Builder
extends Object
implements software.amazon.jsii.Builder<ECSTaskStateChange.ContainerDetails>
A builder for
ECSTaskStateChange.ContainerDetails-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerArn(List<String> containerArn) Sets the value ofECSTaskStateChange.ContainerDetails.getContainerArn()Sets the value ofECSTaskStateChange.ContainerDetails.getCpu()Sets the value ofECSTaskStateChange.ContainerDetails.getExitCode()Sets the value ofECSTaskStateChange.ContainerDetails.getGpuIds()Sets the value ofECSTaskStateChange.ContainerDetails.getImage()imageDigest(List<String> imageDigest) Sets the value ofECSTaskStateChange.ContainerDetails.getImageDigest()lastStatus(List<String> lastStatus) Sets the value ofECSTaskStateChange.ContainerDetails.getLastStatus()Sets the value ofECSTaskStateChange.ContainerDetails.getMemory()memoryReservation(List<String> memoryReservation) Sets the value ofECSTaskStateChange.ContainerDetails.getMemoryReservation()Sets the value ofECSTaskStateChange.ContainerDetails.getName()networkBindings(List<? extends ECSTaskStateChange.NetworkBindingDetails> networkBindings) Sets the value ofECSTaskStateChange.ContainerDetails.getNetworkBindings()networkInterfaces(List<? extends ECSTaskStateChange.NetworkInterfaceDetails> networkInterfaces) Sets the value ofECSTaskStateChange.ContainerDetails.getNetworkInterfaces()Sets the value ofECSTaskStateChange.ContainerDetails.getReason()Sets the value ofECSTaskStateChange.ContainerDetails.getRuntimeId()Sets the value ofECSTaskStateChange.ContainerDetails.getTaskArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerArn
@Stability(Experimental) public ECSTaskStateChange.ContainerDetails.Builder containerArn(List<String> containerArn) Sets the value ofECSTaskStateChange.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
Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ContainerDetails.Builder exitCode(List<String> exitCode) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ContainerDetails.Builder gpuIds(List<String> gpuIds) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ContainerDetails.Builder image(List<String> image) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ContainerDetails.Builder imageDigest(List<String> imageDigest) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ContainerDetails.Builder lastStatus(List<String> lastStatus) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ContainerDetails.Builder memory(List<String> memory) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ContainerDetails.Builder memoryReservation(List<String> memoryReservation) Sets the value ofECSTaskStateChange.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
Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ContainerDetails.Builder networkBindings(List<? extends ECSTaskStateChange.NetworkBindingDetails> networkBindings) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ContainerDetails.Builder networkInterfaces(List<? extends ECSTaskStateChange.NetworkInterfaceDetails> networkInterfaces) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ContainerDetails.Builder reason(List<String> reason) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ContainerDetails.Builder runtimeId(List<String> runtimeId) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ContainerDetails.Builder taskArn(List<String> taskArn) Sets the value ofECSTaskStateChange.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<ECSTaskStateChange.ContainerDetails>- Returns:
- a new instance of
ECSTaskStateChange.ContainerDetails - Throws:
NullPointerException- if any required attribute was not provided
-