Class ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecs.events.ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps>
- Enclosing interface:
ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps
@Stability(Experimental)
public static final class ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder
extends Object
implements software.amazon.jsii.Builder<ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountType(List<String> accountType) agentConnected(List<String> agentConnected) agentUpdateStatus(List<String> agentUpdateStatus) attachments(List<? extends ECSContainerInstanceStateChange.AttachmentDetails> attachments) attributes(List<? extends 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 ECSContainerInstanceStateChange.ResourceDetails> registeredResources) remainingResources(List<? extends ECSContainerInstanceStateChange.ResourceDetails> remainingResources) runningTasksCount(List<String> runningTasksCount) statusReason(List<String> statusReason) versionInfo(ECSContainerInstanceStateChange.VersionInfo versionInfo)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountType
@Stability(Experimental) public ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder accountType(List<String> accountType) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder agentConnected(List<String> agentConnected) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder agentUpdateStatus(List<String> agentUpdateStatus) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder attachments(List<? extends ECSContainerInstanceStateChange.AttachmentDetails> attachments) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder attributes(List<? extends ECSContainerInstanceStateChange.AttributesDetails> attributes) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder clusterArn(List<String> clusterArn) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder containerInstanceArn(List<String> containerInstanceArn) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder ec2InstanceId(List<String> ec2InstanceId) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
pendingTasksCount
@Stability(Experimental) public ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder pendingTasksCount(List<String> pendingTasksCount) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder registeredAt(List<String> registeredAt) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder registeredResources(List<? extends ECSContainerInstanceStateChange.ResourceDetails> registeredResources) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder remainingResources(List<? extends ECSContainerInstanceStateChange.ResourceDetails> remainingResources) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder runningTasksCount(List<String> runningTasksCount) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder status(List<String> status) - 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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder statusReason(List<String> statusReason) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder updatedAt(List<String> updatedAt) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder version(List<String> version) - 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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps.Builder versionInfo(ECSContainerInstanceStateChange.VersionInfo versionInfo) Sets the value ofECSContainerInstanceStateChange.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 ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps>- Returns:
- a new instance of
ECSContainerInstanceStateChange.ECSContainerInstanceStateChangeProps - Throws:
NullPointerException- if any required attribute was not provided
-