Class ECSTaskStateChange.ECSTaskStateChangeProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecs.events.ECSTaskStateChange.ECSTaskStateChangeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ECSTaskStateChange.ECSTaskStateChangeProps>
- Enclosing interface:
ECSTaskStateChange.ECSTaskStateChangeProps
@Stability(Experimental)
public static final class ECSTaskStateChange.ECSTaskStateChangeProps.Builder
extends Object
implements software.amazon.jsii.Builder<ECSTaskStateChange.ECSTaskStateChangeProps>
A builder for
ECSTaskStateChange.ECSTaskStateChangeProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachments(List<? extends ECSTaskStateChange.AttachmentDetails> attachments) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getAttachments()attributes(List<? extends ECSTaskStateChange.AttributesDetails> attributes) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getAttributes()availabilityZone(List<String> availabilityZone) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getAvailabilityZone()build()Builds the configured instance.clusterArn(List<String> clusterArn) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getClusterArn()connectivity(List<String> connectivity) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getConnectivity()connectivityAt(List<String> connectivityAt) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getConnectivityAt()containerInstanceArn(List<String> containerInstanceArn) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getContainerInstanceArn()containers(List<? extends ECSTaskStateChange.ContainerDetails> containers) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getContainers()Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getCpu()Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getCreatedAt()desiredStatus(List<String> desiredStatus) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getDesiredStatus()eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getEventMetadata()executionStoppedAt(List<String> executionStoppedAt) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getExecutionStoppedAt()Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getGroup()lastStatus(List<String> lastStatus) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getLastStatus()launchType(List<String> launchType) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getLaunchType()Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getMemory()overrides(ECSTaskStateChange.Overrides overrides) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getOverrides()platformVersion(List<String> platformVersion) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getPlatformVersion()pullStartedAt(List<String> pullStartedAt) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getPullStartedAt()pullStoppedAt(List<String> pullStoppedAt) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getPullStoppedAt()Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getStartedAt()Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getStartedBy()Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getStopCode()Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getStoppedAt()stoppedReason(List<String> stoppedReason) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getStoppedReason()stoppingAt(List<String> stoppingAt) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getStoppingAt()Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getTaskArn()taskDefinitionArn(List<String> taskDefinitionArn) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getTaskDefinitionArn()Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getUpdatedAt()Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attachments
@Stability(Experimental) public ECSTaskStateChange.ECSTaskStateChangeProps.Builder attachments(List<? extends ECSTaskStateChange.AttachmentDetails> attachments) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getAttachments()- 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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder attributes(List<? extends ECSTaskStateChange.AttributesDetails> attributes) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder availabilityZone(List<String> availabilityZone) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getAvailabilityZone()- 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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder clusterArn(List<String> clusterArn) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder connectivity(List<String> connectivity) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getConnectivity()- 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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder connectivityAt(List<String> connectivityAt) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getConnectivityAt()- 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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder containerInstanceArn(List<String> containerInstanceArn) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder containers(List<? extends ECSTaskStateChange.ContainerDetails> containers) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder cpu(List<String> cpu) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder createdAt(List<String> createdAt) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder desiredStatus(List<String> desiredStatus) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getDesiredStatus()- 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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
executionStoppedAt
@Stability(Experimental) public ECSTaskStateChange.ECSTaskStateChangeProps.Builder executionStoppedAt(List<String> executionStoppedAt) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getExecutionStoppedAt()- 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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder group(List<String> group) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder lastStatus(List<String> lastStatus) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder launchType(List<String> launchType) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder memory(List<String> memory) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder overrides(ECSTaskStateChange.Overrides overrides) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder platformVersion(List<String> platformVersion) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getPlatformVersion()- 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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder pullStartedAt(List<String> pullStartedAt) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getPullStartedAt()- 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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder pullStoppedAt(List<String> pullStoppedAt) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getPullStoppedAt()- 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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder startedAt(List<String> startedAt) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder startedBy(List<String> startedBy) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder stopCode(List<String> stopCode) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder stoppedAt(List<String> stoppedAt) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder stoppedReason(List<String> stoppedReason) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getStoppedReason()- 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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder stoppingAt(List<String> stoppingAt) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder taskArn(List<String> taskArn) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder taskDefinitionArn(List<String> taskDefinitionArn) Sets the value ofECSTaskStateChange.ECSTaskStateChangeProps.getTaskDefinitionArn()- 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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder updatedAt(List<String> updatedAt) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.ECSTaskStateChangeProps.Builder version(List<String> version) Sets the value ofECSTaskStateChange.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<ECSTaskStateChange.ECSTaskStateChangeProps>- Returns:
- a new instance of
ECSTaskStateChange.ECSTaskStateChangeProps - Throws:
NullPointerException- if any required attribute was not provided
-