Class ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecs.events.ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps>
- Enclosing interface:
ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps
@Stability(Experimental)
public static final class ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder
extends Object
implements software.amazon.jsii.Builder<ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountType(List<String> accountType) agentConnected(List<String> agentConnected) agentUpdateStatus(List<String> agentUpdateStatus) attachments(List<? extends ClusterEvents.ECSContainerInstanceStateChange.AttachmentDetails> attachments) attributes(List<? extends ClusterEvents.ECSContainerInstanceStateChange.AttributesDetails> attributes) build()Builds the configured instance.clusterArn(List<String> clusterArn) containerInstanceArn(List<String> containerInstanceArn) ec2InstanceId(List<String> ec2InstanceId) eventMetadata(AWSEventMetadataProps eventMetadata) pendingTasksCount(List<String> pendingTasksCount) registeredAt(List<String> registeredAt) registeredResources(List<? extends ClusterEvents.ECSContainerInstanceStateChange.ResourceDetails> registeredResources) remainingResources(List<? extends ClusterEvents.ECSContainerInstanceStateChange.ResourceDetails> remainingResources) runningTasksCount(List<String> runningTasksCount) statusReason(List<String> statusReason)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountType
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder accountType(List<String> accountType) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.getAccountType()- Parameters:
accountType- accountType property. Specify an array of string values to match this event if the actual value of accountType is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
agentConnected
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder agentConnected(List<String> agentConnected) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.getAgentConnected()- Parameters:
agentConnected- agentConnected property. Specify an array of string values to match this event if the actual value of agentConnected is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
agentUpdateStatus
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder agentUpdateStatus(List<String> agentUpdateStatus) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.getAgentUpdateStatus()- Parameters:
agentUpdateStatus- agentUpdateStatus property. Specify an array of string values to match this event if the actual value of agentUpdateStatus is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
attachments
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder attachments(List<? extends ClusterEvents.ECSContainerInstanceStateChange.AttachmentDetails> attachments) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.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 ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder attributes(List<? extends ClusterEvents.ECSContainerInstanceStateChange.AttributesDetails> attributes) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.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
-
clusterArn
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder clusterArn(List<String> clusterArn) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.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
-
containerInstanceArn
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder containerInstanceArn(List<String> containerInstanceArn) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.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
-
ec2InstanceId
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder ec2InstanceId(List<String> ec2InstanceId) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.getEc2InstanceId()- Parameters:
ec2InstanceId- ec2InstanceId property. Specify an array of string values to match this event if the actual value of ec2InstanceId 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.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
pendingTasksCount
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder pendingTasksCount(List<String> pendingTasksCount) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.getPendingTasksCount()- Parameters:
pendingTasksCount- pendingTasksCount property. Specify an array of string values to match this event if the actual value of pendingTasksCount is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
registeredAt
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder registeredAt(List<String> registeredAt) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.getRegisteredAt()- Parameters:
registeredAt- registeredAt property. Specify an array of string values to match this event if the actual value of registeredAt is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
registeredResources
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder registeredResources(List<? extends ClusterEvents.ECSContainerInstanceStateChange.ResourceDetails> registeredResources) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.getRegisteredResources()- Parameters:
registeredResources- registeredResources property. Specify an array of string values to match this event if the actual value of registeredResources is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
remainingResources
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder remainingResources(List<? extends ClusterEvents.ECSContainerInstanceStateChange.ResourceDetails> remainingResources) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.getRemainingResources()- Parameters:
remainingResources- remainingResources property. Specify an array of string values to match this event if the actual value of remainingResources is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
runningTasksCount
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder runningTasksCount(List<String> runningTasksCount) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.getRunningTasksCount()- Parameters:
runningTasksCount- runningTasksCount property. Specify an array of string values to match this event if the actual value of runningTasksCount 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 ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder status(List<String> status) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.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 ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder statusReason(List<String> statusReason) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.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
-
updatedAt
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder updatedAt(List<String> updatedAt) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.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.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder version(List<String> version) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.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
-
versionInfo
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder versionInfo(ClusterEvents.ECSContainerInstanceStateChange.VersionInfo versionInfo) Sets the value ofClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.getVersionInfo()- Parameters:
versionInfo- versionInfo property. Specify an array of string values to match this event if the actual value of versionInfo is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
@Stability(Experimental) public ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps>- Returns:
- a new instance of
ClusterEvents.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps - Throws:
NullPointerException- if any required attribute was not provided
-