Class CapacitySize
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.CapacitySize
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CapacitySize.Builder,CapacitySize>
@Generated("software.amazon.awssdk:codegen") public final class CapacitySize extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CapacitySize.Builder,CapacitySize>
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
Valueto 100%, then SageMaker uses a blue/green rollback strategy and rolls all traffic back to the blue fleet.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCapacitySize.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CapacitySize.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CapacitySize.Builder>serializableBuilderClass()CapacitySize.BuildertoBuilder()StringtoString()Returns a string representation of this object.CapacitySizeTypetype()Specifies the endpoint capacity type.StringtypeAsString()Specifies the endpoint capacity type.Integervalue()Defines the capacity size, either as a number of instances or a capacity percentage.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
type
public final 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.
If the service returns an enum value that is not available in the current SDK version,
typewill returnCapacitySizeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- 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.
-
- See Also:
CapacitySizeType
-
-
typeAsString
public final String typeAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
typewill returnCapacitySizeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- 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.
-
- See Also:
CapacitySizeType
-
-
value
public final Integer value()
Defines the capacity size, either as a number of instances or a capacity percentage.
- Returns:
- Defines the capacity size, either as a number of instances or a capacity percentage.
-
toBuilder
public CapacitySize.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CapacitySize.Builder,CapacitySize>
-
builder
public static CapacitySize.Builder builder()
-
serializableBuilderClass
public static Class<? extends CapacitySize.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-