Class ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecs.events.ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps>
- Enclosing interface:
ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps
@Stability(Experimental)
public static final class ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder
extends Object
implements software.amazon.jsii.Builder<ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps>
A builder for
ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachments(List<? extends ClusterEvents.ECSTaskStateChange.AttachmentDetails> attachments) attributes(List<? extends ClusterEvents.ECSTaskStateChange.AttributesDetails> attributes) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getAttributes()availabilityZone(List<String> availabilityZone) build()Builds the configured instance.clusterArn(List<String> clusterArn) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getClusterArn()connectivity(List<String> connectivity) connectivityAt(List<String> connectivityAt) containerInstanceArn(List<String> containerInstanceArn) containers(List<? extends ClusterEvents.ECSTaskStateChange.ContainerDetails> containers) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getContainers()Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getCpu()Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getCreatedAt()desiredStatus(List<String> desiredStatus) eventMetadata(AWSEventMetadataProps eventMetadata) executionStoppedAt(List<String> executionStoppedAt) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getGroup()lastStatus(List<String> lastStatus) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getLastStatus()launchType(List<String> launchType) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getLaunchType()Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getMemory()Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getOverrides()platformVersion(List<String> platformVersion) pullStartedAt(List<String> pullStartedAt) pullStoppedAt(List<String> pullStoppedAt) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getStartedAt()Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getStartedBy()Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getStopCode()Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getStoppedAt()stoppedReason(List<String> stoppedReason) stoppingAt(List<String> stoppingAt) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getStoppingAt()Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getTaskArn()taskDefinitionArn(List<String> taskDefinitionArn) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getUpdatedAt()Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attachments
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder attachments(List<? extends ClusterEvents.ECSTaskStateChange.AttachmentDetails> attachments) - Parameters:
attachments- attachments property. Specify an array of string values to match this event if the actual value of attachments is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
attributes
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder attributes(List<? extends ClusterEvents.ECSTaskStateChange.AttributesDetails> attributes) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getAttributes()- Parameters:
attributes- attributes property. Specify an array of string values to match this event if the actual value of attributes is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
availabilityZone
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder availabilityZone(List<String> availabilityZone) - Parameters:
availabilityZone- availabilityZone property. Specify an array of string values to match this event if the actual value of availabilityZone is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
clusterArn
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder clusterArn(List<String> clusterArn) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getClusterArn()- Parameters:
clusterArn- clusterArn property. Specify an array of string values to match this event if the actual value of clusterArn is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
connectivity
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder connectivity(List<String> connectivity) - Parameters:
connectivity- connectivity property. Specify an array of string values to match this event if the actual value of connectivity is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
connectivityAt
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder connectivityAt(List<String> connectivityAt) - Parameters:
connectivityAt- connectivityAt property. Specify an array of string values to match this event if the actual value of connectivityAt 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 ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder containerInstanceArn(List<String> containerInstanceArn) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.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
-
containers
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder containers(List<? extends ClusterEvents.ECSTaskStateChange.ContainerDetails> containers) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getContainers()- Parameters:
containers- containers property. Specify an array of string values to match this event if the actual value of containers 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.ECSTaskStateChangeProps.Builder cpu(List<String> cpu) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.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
-
createdAt
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder createdAt(List<String> createdAt) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.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
-
desiredStatus
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder desiredStatus(List<String> desiredStatus) - Parameters:
desiredStatus- desiredStatus property. Specify an array of string values to match this event if the actual value of desiredStatus 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 ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) - Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
executionStoppedAt
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder executionStoppedAt(List<String> executionStoppedAt) - Parameters:
executionStoppedAt- executionStoppedAt property. Specify an array of string values to match this event if the actual value of executionStoppedAt is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
group
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder group(List<String> group) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getGroup()- Parameters:
group- group property. Specify an array of string values to match this event if the actual value of group 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.ECSTaskStateChangeProps.Builder lastStatus(List<String> lastStatus) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.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
-
launchType
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder launchType(List<String> launchType) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getLaunchType()- Parameters:
launchType- launchType property. Specify an array of string values to match this event if the actual value of launchType 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.ECSTaskStateChangeProps.Builder memory(List<String> memory) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.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
-
overrides
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder overrides(ClusterEvents.ECSTaskStateChange.Overrides overrides) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getOverrides()- Parameters:
overrides- overrides property. Specify an array of string values to match this event if the actual value of overrides is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
platformVersion
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder platformVersion(List<String> platformVersion) - Parameters:
platformVersion- platformVersion property. Specify an array of string values to match this event if the actual value of platformVersion is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
pullStartedAt
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder pullStartedAt(List<String> pullStartedAt) - Parameters:
pullStartedAt- pullStartedAt property. Specify an array of string values to match this event if the actual value of pullStartedAt is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
pullStoppedAt
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder pullStoppedAt(List<String> pullStoppedAt) - Parameters:
pullStoppedAt- pullStoppedAt property. Specify an array of string values to match this event if the actual value of pullStoppedAt 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 ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder startedAt(List<String> startedAt) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.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
-
startedBy
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder startedBy(List<String> startedBy) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getStartedBy()- Parameters:
startedBy- startedBy property. Specify an array of string values to match this event if the actual value of startedBy is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
stopCode
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder stopCode(List<String> stopCode) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getStopCode()- Parameters:
stopCode- stopCode property. Specify an array of string values to match this event if the actual value of stopCode 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 ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder stoppedAt(List<String> stoppedAt) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.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
-
stoppedReason
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder stoppedReason(List<String> stoppedReason) - Parameters:
stoppedReason- stoppedReason property. Specify an array of string values to match this event if the actual value of stoppedReason is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
stoppingAt
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder stoppingAt(List<String> stoppingAt) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getStoppingAt()- Parameters:
stoppingAt- stoppingAt property. Specify an array of string values to match this event if the actual value of stoppingAt 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.ECSTaskStateChangeProps.Builder taskArn(List<String> taskArn) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.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
-
taskDefinitionArn
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder taskDefinitionArn(List<String> taskDefinitionArn) - Parameters:
taskDefinitionArn- taskDefinitionArn property. Specify an array of string values to match this event if the actual value of taskDefinitionArn is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
updatedAt
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder updatedAt(List<String> updatedAt) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getUpdatedAt()- Parameters:
updatedAt- updatedAt property. Specify an array of string values to match this event if the actual value of updatedAt is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
version
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.Builder version(List<String> version) Sets the value ofClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps.getVersion()- Parameters:
version- version property. Specify an array of string values to match this event if the actual value of version 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.ECSTaskStateChangeProps>- Returns:
- a new instance of
ClusterEvents.ECSTaskStateChange.ECSTaskStateChangeProps - Throws:
NullPointerException- if any required attribute was not provided
-