@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CapacitySize extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the type and size of the endpoint capacity to activate for a blue/green deployment, a rolling deployment, or a rollback strategy. You can specify your batches as either instance count or the overall percentage or your fleet.
For a rollback strategy, if you don't specify the fields in this object, or if you set the Value to
100%, then SageMaker uses a blue/green rollback strategy and rolls all traffic back to the blue fleet.
| 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.
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)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.