Class BatchJobStateChange.BatchJobStateChangeItem.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.batch.events.BatchJobStateChange.BatchJobStateChangeItem.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BatchJobStateChange.BatchJobStateChangeItem>
- Enclosing interface:
BatchJobStateChange.BatchJobStateChangeItem
@Stability(Experimental)
public static final class BatchJobStateChange.BatchJobStateChangeItem.Builder
extends Object
implements software.amazon.jsii.Builder<BatchJobStateChange.BatchJobStateChangeItem>
A builder for
BatchJobStateChange.BatchJobStateChangeItem-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.container(BatchJobStateChange.Container1 container) Sets the value ofBatchJobStateChange.BatchJobStateChangeItem.getContainer()Sets the value ofBatchJobStateChange.BatchJobStateChangeItem.getStartedAt()statusReason(List<String> statusReason) Sets the value ofBatchJobStateChange.BatchJobStateChangeItem.getStatusReason()Sets the value ofBatchJobStateChange.BatchJobStateChangeItem.getStoppedAt()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
container
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeItem.Builder container(BatchJobStateChange.Container1 container) Sets the value ofBatchJobStateChange.BatchJobStateChangeItem.getContainer()- Parameters:
container- container property. Specify an array of string values to match this event if the actual value of container is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
startedAt
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeItem.Builder startedAt(List<String> startedAt) Sets the value ofBatchJobStateChange.BatchJobStateChangeItem.getStartedAt()- Parameters:
startedAt- startedAt property. Specify an array of string values to match this event if the actual value of startedAt is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
statusReason
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeItem.Builder statusReason(List<String> statusReason) Sets the value ofBatchJobStateChange.BatchJobStateChangeItem.getStatusReason()- Parameters:
statusReason- statusReason property. Specify an array of string values to match this event if the actual value of statusReason is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
stoppedAt
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeItem.Builder stoppedAt(List<String> stoppedAt) Sets the value ofBatchJobStateChange.BatchJobStateChangeItem.getStoppedAt()- Parameters:
stoppedAt- stoppedAt property. Specify an array of string values to match this event if the actual value of stoppedAt 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.BatchJobStateChangeItem>- Returns:
- a new instance of
BatchJobStateChange.BatchJobStateChangeItem - Throws:
NullPointerException- if any required attribute was not provided
-