public static final class CfnEndpoint.CapacitySizeProperty.Builder
extends java.lang.Object
CfnEndpoint.CapacitySizeProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnEndpoint.CapacitySizeProperty |
build()
Builds the configured instance.
|
CfnEndpoint.CapacitySizeProperty.Builder |
type(java.lang.String type)
Sets the value of
CfnEndpoint.CapacitySizeProperty.getType() |
CfnEndpoint.CapacitySizeProperty.Builder |
value(java.lang.Number value)
Sets the value of
CfnEndpoint.CapacitySizeProperty.getValue() |
public CfnEndpoint.CapacitySizeProperty.Builder type(java.lang.String type)
CfnEndpoint.CapacitySizeProperty.getType()
type
- Specifies the endpoint capacity type. This parameter is required.
INSTANCE_COUNT
: The endpoint activates based on the number of instances.CAPACITY_PERCENT
: The endpoint activates based on the specified percentage of capacity.this
public CfnEndpoint.CapacitySizeProperty.Builder value(java.lang.Number value)
CfnEndpoint.CapacitySizeProperty.getValue()
value
- Defines the capacity size, either as a number of instances or a capacity percentage. This parameter is required.this
public CfnEndpoint.CapacitySizeProperty build()
CfnEndpoint.CapacitySizeProperty
java.lang.NullPointerException
- if any required attribute was not provided