Class ECSTaskStateChange.NetworkBindingDetails.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecs.events.ECSTaskStateChange.NetworkBindingDetails.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ECSTaskStateChange.NetworkBindingDetails>
- Enclosing interface:
ECSTaskStateChange.NetworkBindingDetails
@Stability(Experimental)
public static final class ECSTaskStateChange.NetworkBindingDetails.Builder
extends Object
implements software.amazon.jsii.Builder<ECSTaskStateChange.NetworkBindingDetails>
A builder for
ECSTaskStateChange.NetworkBindingDetails-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofECSTaskStateChange.NetworkBindingDetails.getBindIp()build()Builds the configured instance.containerPort(List<String> containerPort) Sets the value ofECSTaskStateChange.NetworkBindingDetails.getContainerPort()Sets the value ofECSTaskStateChange.NetworkBindingDetails.getHostPort()Sets the value ofECSTaskStateChange.NetworkBindingDetails.getProtocol()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bindIp
@Stability(Experimental) public ECSTaskStateChange.NetworkBindingDetails.Builder bindIp(List<String> bindIp) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.NetworkBindingDetails.Builder containerPort(List<String> containerPort) Sets the value ofECSTaskStateChange.NetworkBindingDetails.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
-
hostPort
@Stability(Experimental) public ECSTaskStateChange.NetworkBindingDetails.Builder hostPort(List<String> hostPort) Sets the value ofECSTaskStateChange.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 ECSTaskStateChange.NetworkBindingDetails.Builder protocol(List<String> protocol) Sets the value ofECSTaskStateChange.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<ECSTaskStateChange.NetworkBindingDetails>- Returns:
- a new instance of
ECSTaskStateChange.NetworkBindingDetails - Throws:
NullPointerException- if any required attribute was not provided
-