Class BatchJobStateChange.Container.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.batch.events.BatchJobStateChange.Container.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BatchJobStateChange.Container>
- Enclosing interface:
BatchJobStateChange.Container
@Stability(Experimental)
public static final class BatchJobStateChange.Container.Builder
extends Object
implements software.amazon.jsii.Builder<BatchJobStateChange.Container>
A builder for
BatchJobStateChange.Container-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofBatchJobStateChange.Container.getCommand()containerInstanceArn(List<String> containerInstanceArn) Sets the value ofBatchJobStateChange.Container.getContainerInstanceArn()environment(List<? extends BatchJobStateChange.ContainerItem> environment) Sets the value ofBatchJobStateChange.Container.getEnvironment()Sets the value ofBatchJobStateChange.Container.getExitCode()Sets the value ofBatchJobStateChange.Container.getImage()logStreamName(List<String> logStreamName) Sets the value ofBatchJobStateChange.Container.getLogStreamName()Sets the value ofBatchJobStateChange.Container.getMemory()mountPoints(List<? extends BatchJobStateChange.MountPoint> mountPoints) Sets the value ofBatchJobStateChange.Container.getMountPoints()networkInterfaces(List<? extends BatchJobStateChange.NetworkInterface> networkInterfaces) Sets the value ofBatchJobStateChange.Container.getNetworkInterfaces()resourceRequirements(List<? extends BatchJobStateChange.ResourceRequirement> resourceRequirements) Sets the value ofBatchJobStateChange.Container.getResourceRequirements()Sets the value ofBatchJobStateChange.Container.getTaskArn()ulimits(List<? extends BatchJobStateChange.ULimit> ulimits) Sets the value ofBatchJobStateChange.Container.getUlimits()Sets the value ofBatchJobStateChange.Container.getVcpus()volumes(List<? extends BatchJobStateChange.Volumes> volumes) Sets the value ofBatchJobStateChange.Container.getVolumes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
command
Sets the value ofBatchJobStateChange.Container.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
-
containerInstanceArn
@Stability(Experimental) public BatchJobStateChange.Container.Builder containerInstanceArn(List<String> containerInstanceArn) Sets the value ofBatchJobStateChange.Container.getContainerInstanceArn()- Parameters:
containerInstanceArn- containerInstanceArn property. Specify an array of string values to match this event if the actual value of containerInstanceArn 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 BatchJobStateChange.Container.Builder environment(List<? extends BatchJobStateChange.ContainerItem> environment) Sets the value ofBatchJobStateChange.Container.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
-
exitCode
@Stability(Experimental) public BatchJobStateChange.Container.Builder exitCode(List<String> exitCode) Sets the value ofBatchJobStateChange.Container.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
-
image
Sets the value ofBatchJobStateChange.Container.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
-
logStreamName
@Stability(Experimental) public BatchJobStateChange.Container.Builder logStreamName(List<String> logStreamName) Sets the value ofBatchJobStateChange.Container.getLogStreamName()- Parameters:
logStreamName- logStreamName property. Specify an array of string values to match this event if the actual value of logStreamName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
memory
Sets the value ofBatchJobStateChange.Container.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
-
mountPoints
@Stability(Experimental) public BatchJobStateChange.Container.Builder mountPoints(List<? extends BatchJobStateChange.MountPoint> mountPoints) Sets the value ofBatchJobStateChange.Container.getMountPoints()- Parameters:
mountPoints- mountPoints property. Specify an array of string values to match this event if the actual value of mountPoints 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 BatchJobStateChange.Container.Builder networkInterfaces(List<? extends BatchJobStateChange.NetworkInterface> networkInterfaces) Sets the value ofBatchJobStateChange.Container.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
-
resourceRequirements
@Stability(Experimental) public BatchJobStateChange.Container.Builder resourceRequirements(List<? extends BatchJobStateChange.ResourceRequirement> resourceRequirements) Sets the value ofBatchJobStateChange.Container.getResourceRequirements()- Parameters:
resourceRequirements- resourceRequirements property. Specify an array of string values to match this event if the actual value of resourceRequirements is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
taskArn
Sets the value ofBatchJobStateChange.Container.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
-
ulimits
@Stability(Experimental) public BatchJobStateChange.Container.Builder ulimits(List<? extends BatchJobStateChange.ULimit> ulimits) Sets the value ofBatchJobStateChange.Container.getUlimits()- Parameters:
ulimits- ulimits property. Specify an array of string values to match this event if the actual value of ulimits is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
vcpus
Sets the value ofBatchJobStateChange.Container.getVcpus()- Parameters:
vcpus- vcpus property. Specify an array of string values to match this event if the actual value of vcpus is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
volumes
@Stability(Experimental) public BatchJobStateChange.Container.Builder volumes(List<? extends BatchJobStateChange.Volumes> volumes) Sets the value ofBatchJobStateChange.Container.getVolumes()- Parameters:
volumes- volumes property. Specify an array of string values to match this event if the actual value of volumes 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<BatchJobStateChange.Container>- Returns:
- a new instance of
BatchJobStateChange.Container - Throws:
NullPointerException- if any required attribute was not provided
-