Class InferenceComponentCapacitySize
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.InferenceComponentCapacitySize
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InferenceComponentCapacitySize.Builder,InferenceComponentCapacitySize>
@Generated("software.amazon.awssdk:codegen") public final class InferenceComponentCapacitySize extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InferenceComponentCapacitySize.Builder,InferenceComponentCapacitySize>
Specifies the type and size of the endpoint capacity to activate for a rolling deployment or a rollback strategy. You can specify your batches as either of the following:
-
A count of inference component copies
-
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
Valueparameter to 100%, then SageMaker AI 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 interfaceInferenceComponentCapacitySize.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InferenceComponentCapacitySize.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 InferenceComponentCapacitySize.Builder>serializableBuilderClass()InferenceComponentCapacitySize.BuildertoBuilder()StringtoString()Returns a string representation of this object.InferenceComponentCapacitySizeTypetype()Specifies the endpoint capacity type.StringtypeAsString()Specifies the endpoint capacity type.Integervalue()Defines the capacity size, either as a number of inference component copies 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 InferenceComponentCapacitySizeType type()
Specifies the endpoint capacity type.
- COPY_COUNT
-
The endpoint activates based on the number of inference component copies.
- 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 returnInferenceComponentCapacitySizeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Specifies the endpoint capacity type.
- COPY_COUNT
-
The endpoint activates based on the number of inference component copies.
- CAPACITY_PERCENT
-
The endpoint activates based on the specified percentage of capacity.
- See Also:
InferenceComponentCapacitySizeType
-
typeAsString
public final String typeAsString()
Specifies the endpoint capacity type.
- COPY_COUNT
-
The endpoint activates based on the number of inference component copies.
- 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 returnInferenceComponentCapacitySizeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Specifies the endpoint capacity type.
- COPY_COUNT
-
The endpoint activates based on the number of inference component copies.
- CAPACITY_PERCENT
-
The endpoint activates based on the specified percentage of capacity.
- See Also:
InferenceComponentCapacitySizeType
-
value
public final Integer value()
Defines the capacity size, either as a number of inference component copies or a capacity percentage.
- Returns:
- Defines the capacity size, either as a number of inference component copies or a capacity percentage.
-
toBuilder
public InferenceComponentCapacitySize.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InferenceComponentCapacitySize.Builder,InferenceComponentCapacitySize>
-
builder
public static InferenceComponentCapacitySize.Builder builder()
-
serializableBuilderClass
public static Class<? extends InferenceComponentCapacitySize.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
-
-