@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)
Marshalls this structured data using the given
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.
CapacitySizeType
public 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.
CapacitySizeType
public 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.
CapacitySizeType
public 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.
CapacitySizeType
public 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 Object
Object.toString()
public CapacitySize clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.