Class CfnCapacityProviderPropsMixin.MemoryGiBPerVCpuRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnCapacityProviderPropsMixin.MemoryGiBPerVCpuRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.MemoryGiBPerVCpuRequestProperty>
- Enclosing interface:
CfnCapacityProviderPropsMixin.MemoryGiBPerVCpuRequestProperty
@Stability(Stable)
public static final class CfnCapacityProviderPropsMixin.MemoryGiBPerVCpuRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.MemoryGiBPerVCpuRequestProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCapacityProviderPropsMixin.MemoryGiBPerVCpuRequestProperty.getMax()Sets the value ofCfnCapacityProviderPropsMixin.MemoryGiBPerVCpuRequestProperty.getMin()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
max
@Stability(Stable) public CfnCapacityProviderPropsMixin.MemoryGiBPerVCpuRequestProperty.Builder max(Number max) Sets the value ofCfnCapacityProviderPropsMixin.MemoryGiBPerVCpuRequestProperty.getMax()- Parameters:
max- The maximum amount of memory per vCPU in GiB. Instance types with a higher memory-to-vCPU ratio are excluded from selection.- Returns:
this
-
min
@Stability(Stable) public CfnCapacityProviderPropsMixin.MemoryGiBPerVCpuRequestProperty.Builder min(Number min) Sets the value ofCfnCapacityProviderPropsMixin.MemoryGiBPerVCpuRequestProperty.getMin()- Parameters:
min- The minimum amount of memory per vCPU in GiB. Instance types with a lower memory-to-vCPU ratio are excluded from selection.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.MemoryGiBPerVCpuRequestProperty>- Returns:
- a new instance of
CfnCapacityProviderPropsMixin.MemoryGiBPerVCpuRequestProperty - Throws:
NullPointerException- if any required attribute was not provided
-