Class CfnCapacityProvider.NetworkInterfaceCountRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnCapacityProvider.NetworkInterfaceCountRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityProvider.NetworkInterfaceCountRequestProperty>
- Enclosing interface:
CfnCapacityProvider.NetworkInterfaceCountRequestProperty
@Stability(Stable)
public static final class CfnCapacityProvider.NetworkInterfaceCountRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityProvider.NetworkInterfaceCountRequestProperty>
A builder for
CfnCapacityProvider.NetworkInterfaceCountRequestProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCapacityProvider.NetworkInterfaceCountRequestProperty.getMax()Sets the value ofCfnCapacityProvider.NetworkInterfaceCountRequestProperty.getMin()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
max
@Stability(Stable) public CfnCapacityProvider.NetworkInterfaceCountRequestProperty.Builder max(Number max) Sets the value ofCfnCapacityProvider.NetworkInterfaceCountRequestProperty.getMax()- Parameters:
max- The maximum number of network interfaces. Instance types that support more network interfaces are excluded from selection.- Returns:
this
-
min
@Stability(Stable) public CfnCapacityProvider.NetworkInterfaceCountRequestProperty.Builder min(Number min) Sets the value ofCfnCapacityProvider.NetworkInterfaceCountRequestProperty.getMin()- Parameters:
min- The minimum number of network interfaces. Instance types that support fewer network interfaces are excluded from selection.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityProvider.NetworkInterfaceCountRequestProperty>- Returns:
- a new instance of
CfnCapacityProvider.NetworkInterfaceCountRequestProperty - Throws:
NullPointerException- if any required attribute was not provided
-