Class ECSServiceAction.ECSServiceActionProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecs.events.ECSServiceAction.ECSServiceActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ECSServiceAction.ECSServiceActionProps>
- Enclosing interface:
ECSServiceAction.ECSServiceActionProps
@Stability(Experimental)
public static final class ECSServiceAction.ECSServiceActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<ECSServiceAction.ECSServiceActionProps>
A builder for
ECSServiceAction.ECSServiceActionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityProviderArns(List<String> capacityProviderArns) Sets the value ofECSServiceAction.ECSServiceActionProps.getCapacityProviderArns()clusterArn(List<String> clusterArn) Sets the value ofECSServiceAction.ECSServiceActionProps.getClusterArn()containerInstanceArns(List<String> containerInstanceArns) Sets the value ofECSServiceAction.ECSServiceActionProps.getContainerInstanceArns()containerPort(List<String> containerPort) Sets the value ofECSServiceAction.ECSServiceActionProps.getContainerPort()Sets the value ofECSServiceAction.ECSServiceActionProps.getCreatedAt()desiredCount(List<String> desiredCount) Sets the value ofECSServiceAction.ECSServiceActionProps.getDesiredCount()ec2InstanceIds(List<String> ec2InstanceIds) Sets the value ofECSServiceAction.ECSServiceActionProps.getEc2InstanceIds()eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofECSServiceAction.ECSServiceActionProps.getEventMetadata()Sets the value ofECSServiceAction.ECSServiceActionProps.getEventName()Sets the value ofECSServiceAction.ECSServiceActionProps.getEventType()Sets the value ofECSServiceAction.ECSServiceActionProps.getReason()serviceRegistryArns(List<String> serviceRegistryArns) Sets the value ofECSServiceAction.ECSServiceActionProps.getServiceRegistryArns()targetGroupArns(List<String> targetGroupArns) Sets the value ofECSServiceAction.ECSServiceActionProps.getTargetGroupArns()Sets the value ofECSServiceAction.ECSServiceActionProps.getTargets()Sets the value ofECSServiceAction.ECSServiceActionProps.getTaskArns()taskSetArns(List<String> taskSetArns) Sets the value ofECSServiceAction.ECSServiceActionProps.getTaskSetArns()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacityProviderArns
@Stability(Experimental) public ECSServiceAction.ECSServiceActionProps.Builder capacityProviderArns(List<String> capacityProviderArns) Sets the value ofECSServiceAction.ECSServiceActionProps.getCapacityProviderArns()- 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 ECSServiceAction.ECSServiceActionProps.Builder clusterArn(List<String> clusterArn) Sets the value ofECSServiceAction.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 ECSServiceAction.ECSServiceActionProps.Builder containerInstanceArns(List<String> containerInstanceArns) Sets the value ofECSServiceAction.ECSServiceActionProps.getContainerInstanceArns()- 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 ECSServiceAction.ECSServiceActionProps.Builder containerPort(List<String> containerPort) Sets the value ofECSServiceAction.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 ECSServiceAction.ECSServiceActionProps.Builder createdAt(List<String> createdAt) Sets the value ofECSServiceAction.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 ECSServiceAction.ECSServiceActionProps.Builder desiredCount(List<String> desiredCount) Sets the value ofECSServiceAction.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 ECSServiceAction.ECSServiceActionProps.Builder ec2InstanceIds(List<String> ec2InstanceIds) Sets the value ofECSServiceAction.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 ECSServiceAction.ECSServiceActionProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofECSServiceAction.ECSServiceActionProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
eventName
@Stability(Experimental) public ECSServiceAction.ECSServiceActionProps.Builder eventName(List<String> eventName) Sets the value ofECSServiceAction.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 ECSServiceAction.ECSServiceActionProps.Builder eventType(List<String> eventType) Sets the value ofECSServiceAction.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 ECSServiceAction.ECSServiceActionProps.Builder reason(List<String> reason) Sets the value ofECSServiceAction.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 ECSServiceAction.ECSServiceActionProps.Builder serviceRegistryArns(List<String> serviceRegistryArns) Sets the value ofECSServiceAction.ECSServiceActionProps.getServiceRegistryArns()- 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 ECSServiceAction.ECSServiceActionProps.Builder targetGroupArns(List<String> targetGroupArns) Sets the value ofECSServiceAction.ECSServiceActionProps.getTargetGroupArns()- 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 ECSServiceAction.ECSServiceActionProps.Builder targets(List<String> targets) Sets the value ofECSServiceAction.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 ECSServiceAction.ECSServiceActionProps.Builder taskArns(List<String> taskArns) Sets the value ofECSServiceAction.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 ECSServiceAction.ECSServiceActionProps.Builder taskSetArns(List<String> taskSetArns) Sets the value ofECSServiceAction.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<ECSServiceAction.ECSServiceActionProps>- Returns:
- a new instance of
ECSServiceAction.ECSServiceActionProps - Throws:
NullPointerException- if any required attribute was not provided
-