Class ClusterEvents.ECSTaskStateChange.NetworkBindingDetails.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecs.events.ClusterEvents.ECSTaskStateChange.NetworkBindingDetails.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterEvents.ECSTaskStateChange.NetworkBindingDetails>
- Enclosing interface:
ClusterEvents.ECSTaskStateChange.NetworkBindingDetails
@Stability(Experimental)
public static final class ClusterEvents.ECSTaskStateChange.NetworkBindingDetails.Builder
extends Object
implements software.amazon.jsii.Builder<ClusterEvents.ECSTaskStateChange.NetworkBindingDetails>
A builder for
ClusterEvents.ECSTaskStateChange.NetworkBindingDetails-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofClusterEvents.ECSTaskStateChange.NetworkBindingDetails.getBindIp()build()Builds the configured instance.containerPort(List<String> containerPort) Sets the value ofClusterEvents.ECSTaskStateChange.NetworkBindingDetails.getHostPort()Sets the value ofClusterEvents.ECSTaskStateChange.NetworkBindingDetails.getProtocol()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bindIp
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.NetworkBindingDetails.Builder bindIp(List<String> bindIp) Sets the value ofClusterEvents.ECSTaskStateChange.NetworkBindingDetails.getBindIp()- Parameters:
bindIp- bindIP property. Specify an array of string values to match this event if the actual value of bindIP 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.ECSTaskStateChange.NetworkBindingDetails.Builder containerPort(List<String> containerPort) - 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
-
hostPort
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.NetworkBindingDetails.Builder hostPort(List<String> hostPort) Sets the value ofClusterEvents.ECSTaskStateChange.NetworkBindingDetails.getHostPort()- Parameters:
hostPort- hostPort property. Specify an array of string values to match this event if the actual value of hostPort is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
protocol
@Stability(Experimental) public ClusterEvents.ECSTaskStateChange.NetworkBindingDetails.Builder protocol(List<String> protocol) Sets the value ofClusterEvents.ECSTaskStateChange.NetworkBindingDetails.getProtocol()- Parameters:
protocol- protocol property. Specify an array of string values to match this event if the actual value of protocol 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.ECSTaskStateChange.NetworkBindingDetails>- Returns:
- a new instance of
ClusterEvents.ECSTaskStateChange.NetworkBindingDetails - Throws:
NullPointerException- if any required attribute was not provided
-