Class BatchJobStateChange.BatchJobStateChangeProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.batch.events.BatchJobStateChange.BatchJobStateChangeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BatchJobStateChange.BatchJobStateChangeProps>
- Enclosing interface:
BatchJobStateChange.BatchJobStateChangeProps
@Stability(Experimental)
public static final class BatchJobStateChange.BatchJobStateChangeProps.Builder
extends Object
implements software.amazon.jsii.Builder<BatchJobStateChange.BatchJobStateChangeProps>
A builder for
BatchJobStateChange.BatchJobStateChangeProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattempts(List<? extends BatchJobStateChange.BatchJobStateChangeItem> attempts) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getAttempts()build()Builds the configured instance.container(BatchJobStateChange.Container container) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getContainer()Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getCreatedAt()dependsOn(List<? extends BatchJobStateChange.JobDependency> dependsOn) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getDependsOn()eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getEventMetadata()jobDefinition(List<String> jobDefinition) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getJobDefinition()Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getJobId()Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getJobName()Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getJobQueue()parameters(List<String> parameters) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getParameters()retryStrategy(BatchJobStateChange.RetryStrategy retryStrategy) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getRetryStrategy()Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getStartedAt()Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getStatus()statusReason(List<String> statusReason) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getStatusReason()Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getStoppedAt()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attempts
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeProps.Builder attempts(List<? extends BatchJobStateChange.BatchJobStateChangeItem> attempts) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getAttempts()- Parameters:
attempts- attempts property. Specify an array of string values to match this event if the actual value of attempts is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
container
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeProps.Builder container(BatchJobStateChange.Container container) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.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
-
createdAt
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeProps.Builder createdAt(List<String> createdAt) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getCreatedAt()- Parameters:
createdAt- createdAt property. Specify an array of string values to match this event if the actual value of createdAt is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
dependsOn
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeProps.Builder dependsOn(List<? extends BatchJobStateChange.JobDependency> dependsOn) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getDependsOn()- Parameters:
dependsOn- dependsOn property. Specify an array of string values to match this event if the actual value of dependsOn is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
eventMetadata
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
jobDefinition
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeProps.Builder jobDefinition(List<String> jobDefinition) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getJobDefinition()- Parameters:
jobDefinition- jobDefinition property. Specify an array of string values to match this event if the actual value of jobDefinition is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
jobId
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeProps.Builder jobId(List<String> jobId) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getJobId()- Parameters:
jobId- jobId property. Specify an array of string values to match this event if the actual value of jobId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
jobName
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeProps.Builder jobName(List<String> jobName) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getJobName()- Parameters:
jobName- jobName property. Specify an array of string values to match this event if the actual value of jobName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
jobQueue
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeProps.Builder jobQueue(List<String> jobQueue) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getJobQueue()- Parameters:
jobQueue- jobQueue property. Specify an array of string values to match this event if the actual value of jobQueue is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
parameters
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeProps.Builder parameters(List<String> parameters) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getParameters()- Parameters:
parameters- parameters property. Specify an array of string values to match this event if the actual value of parameters is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
retryStrategy
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeProps.Builder retryStrategy(BatchJobStateChange.RetryStrategy retryStrategy) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getRetryStrategy()- Parameters:
retryStrategy- retryStrategy property. Specify an array of string values to match this event if the actual value of retryStrategy 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.BatchJobStateChangeProps.Builder startedAt(List<String> startedAt) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.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
-
status
@Stability(Experimental) public BatchJobStateChange.BatchJobStateChangeProps.Builder status(List<String> status) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.getStatus()- Parameters:
status- status property. Specify an array of string values to match this event if the actual value of status 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.BatchJobStateChangeProps.Builder statusReason(List<String> statusReason) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.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.BatchJobStateChangeProps.Builder stoppedAt(List<String> stoppedAt) Sets the value ofBatchJobStateChange.BatchJobStateChangeProps.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.BatchJobStateChangeProps>- Returns:
- a new instance of
BatchJobStateChange.BatchJobStateChangeProps - Throws:
NullPointerException- if any required attribute was not provided
-