Class ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecs.events.ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterEvents.ECSServiceAction.ECSServiceActionProps>
- Enclosing interface:
ClusterEvents.ECSServiceAction.ECSServiceActionProps
@Stability(Experimental)
public static final class ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<ClusterEvents.ECSServiceAction.ECSServiceActionProps>
A builder for
ClusterEvents.ECSServiceAction.ECSServiceActionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityProviderArns(List<String> capacityProviderArns) clusterArn(List<String> clusterArn) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getClusterArn()containerInstanceArns(List<String> containerInstanceArns) containerPort(List<String> containerPort) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getContainerPort()Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getCreatedAt()desiredCount(List<String> desiredCount) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getDesiredCount()ec2InstanceIds(List<String> ec2InstanceIds) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getEc2InstanceIds()eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getEventMetadata()Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getEventName()Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getEventType()Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getReason()serviceRegistryArns(List<String> serviceRegistryArns) targetGroupArns(List<String> targetGroupArns) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getTargets()Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getTaskArns()taskSetArns(List<String> taskSetArns) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getTaskSetArns()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacityProviderArns
@Stability(Experimental) public ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder capacityProviderArns(List<String> capacityProviderArns) - Parameters:
capacityProviderArns- capacityProviderArns property. Specify an array of string values to match this event if the actual value of capacityProviderArns 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.ECSServiceAction.ECSServiceActionProps.Builder clusterArn(List<String> clusterArn) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.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
-
containerInstanceArns
@Stability(Experimental) public ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder containerInstanceArns(List<String> containerInstanceArns) - Parameters:
containerInstanceArns- containerInstanceArns property. Specify an array of string values to match this event if the actual value of containerInstanceArns is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
containerPort
@Stability(Experimental) public ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder containerPort(List<String> containerPort) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getContainerPort()- Parameters:
containerPort- containerPort property. Specify an array of string values to match this event if the actual value of containerPort 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.ECSServiceAction.ECSServiceActionProps.Builder createdAt(List<String> createdAt) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.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
-
desiredCount
@Stability(Experimental) public ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder desiredCount(List<String> desiredCount) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getDesiredCount()- Parameters:
desiredCount- desiredCount property. Specify an array of string values to match this event if the actual value of desiredCount is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
ec2InstanceIds
@Stability(Experimental) public ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder ec2InstanceIds(List<String> ec2InstanceIds) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getEc2InstanceIds()- Parameters:
ec2InstanceIds- ec2InstanceIds property. Specify an array of string values to match this event if the actual value of ec2InstanceIds 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.ECSServiceAction.ECSServiceActionProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
eventName
@Stability(Experimental) public ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder eventName(List<String> eventName) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getEventName()- Parameters:
eventName- eventName property. Specify an array of string values to match this event if the actual value of eventName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
eventType
@Stability(Experimental) public ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder eventType(List<String> eventType) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getEventType()- Parameters:
eventType- eventType property. Specify an array of string values to match this event if the actual value of eventType is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
reason
@Stability(Experimental) public ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder reason(List<String> reason) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getReason()- Parameters:
reason- reason property. Specify an array of string values to match this event if the actual value of reason is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
serviceRegistryArns
@Stability(Experimental) public ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder serviceRegistryArns(List<String> serviceRegistryArns) - Parameters:
serviceRegistryArns- serviceRegistryArns property. Specify an array of string values to match this event if the actual value of serviceRegistryArns is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
targetGroupArns
@Stability(Experimental) public ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder targetGroupArns(List<String> targetGroupArns) - Parameters:
targetGroupArns- targetGroupArns property. Specify an array of string values to match this event if the actual value of targetGroupArns is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
targets
@Stability(Experimental) public ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder targets(List<String> targets) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getTargets()- Parameters:
targets- targets property. Specify an array of string values to match this event if the actual value of targets is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
taskArns
@Stability(Experimental) public ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder taskArns(List<String> taskArns) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getTaskArns()- Parameters:
taskArns- taskArns property. Specify an array of string values to match this event if the actual value of taskArns is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
taskSetArns
@Stability(Experimental) public ClusterEvents.ECSServiceAction.ECSServiceActionProps.Builder taskSetArns(List<String> taskSetArns) Sets the value ofClusterEvents.ECSServiceAction.ECSServiceActionProps.getTaskSetArns()- Parameters:
taskSetArns- taskSetArns property. Specify an array of string values to match this event if the actual value of taskSetArns 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.ECSServiceAction.ECSServiceActionProps>- Returns:
- a new instance of
ClusterEvents.ECSServiceAction.ECSServiceActionProps - Throws:
NullPointerException- if any required attribute was not provided
-