@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CapacitySize extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the endpoint capacity to activate for production.
| Constructor and Description |
|---|
CapacitySize() |
| Modifier and Type | Method and Description |
|---|---|
CapacitySize |
clone() |
boolean |
equals(Object obj) |
String |
getType()
Specifies the endpoint capacity type.
|
Integer |
getValue()
Defines the capacity size, either as a number of instances or a capacity percentage.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setType(String type)
Specifies the endpoint capacity type.
|
void |
setValue(Integer value)
Defines the capacity size, either as a number of instances or a capacity percentage.
|
String |
toString()
Returns a string representation of this object.
|
CapacitySize |
withType(CapacitySizeType type)
Specifies the endpoint capacity type.
|
CapacitySize |
withType(String type)
Specifies the endpoint capacity type.
|
CapacitySize |
withValue(Integer value)
Defines the capacity size, either as a number of instances or a capacity percentage.
|
public void setType(String type)
Specifies the endpoint capacity type.
INSTANCE_COUNT: The endpoint activates based on the number of instances.
CAPACITY_PERCENT: The endpoint activates based on the specified percentage of capacity.
type - Specifies the endpoint capacity type.
INSTANCE_COUNT: The endpoint activates based on the number of instances.
CAPACITY_PERCENT: The endpoint activates based on the specified percentage of capacity.
CapacitySizeTypepublic String getType()
Specifies the endpoint capacity type.
INSTANCE_COUNT: The endpoint activates based on the number of instances.
CAPACITY_PERCENT: The endpoint activates based on the specified percentage of capacity.
INSTANCE_COUNT: The endpoint activates based on the number of instances.
CAPACITY_PERCENT: The endpoint activates based on the specified percentage of capacity.
CapacitySizeTypepublic CapacitySize withType(String type)
Specifies the endpoint capacity type.
INSTANCE_COUNT: The endpoint activates based on the number of instances.
CAPACITY_PERCENT: The endpoint activates based on the specified percentage of capacity.
type - Specifies the endpoint capacity type.
INSTANCE_COUNT: The endpoint activates based on the number of instances.
CAPACITY_PERCENT: The endpoint activates based on the specified percentage of capacity.
CapacitySizeTypepublic CapacitySize withType(CapacitySizeType type)
Specifies the endpoint capacity type.
INSTANCE_COUNT: The endpoint activates based on the number of instances.
CAPACITY_PERCENT: The endpoint activates based on the specified percentage of capacity.
type - Specifies the endpoint capacity type.
INSTANCE_COUNT: The endpoint activates based on the number of instances.
CAPACITY_PERCENT: The endpoint activates based on the specified percentage of capacity.
CapacitySizeTypepublic void setValue(Integer value)
Defines the capacity size, either as a number of instances or a capacity percentage.
value - Defines the capacity size, either as a number of instances or a capacity percentage.public Integer getValue()
Defines the capacity size, either as a number of instances or a capacity percentage.
public CapacitySize withValue(Integer value)
Defines the capacity size, either as a number of instances or a capacity percentage.
value - Defines the capacity size, either as a number of instances or a capacity percentage.public String toString()
toString in class ObjectObject.toString()public CapacitySize clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.