Class GlobalInferenceGatewayRoutingWeights
java.lang.Object
software.amazon.awssdk.services.sagemaker.model.GlobalInferenceGatewayRoutingWeights
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<GlobalInferenceGatewayRoutingWeights.Builder,GlobalInferenceGatewayRoutingWeights>
@Generated("software.amazon.awssdk:codegen")
public final class GlobalInferenceGatewayRoutingWeights
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<GlobalInferenceGatewayRoutingWeights.Builder,GlobalInferenceGatewayRoutingWeights>
The relative weights of the four routing signals, each from 0 to 1. Specify all four weights or none. If you specify them, they must sum to 1.0, within 0.001. If you specify none, the global inference gateway uses default weights.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final FloatThe weight of the recent error rate of the cluster.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final FloatThe weight of the free key-value (KV) cache capacity on the cluster.final FloatThe weight of the number of requests that are waiting on the cluster.final FloatThe weight of how close the cluster is to the caller.static Class<? extends GlobalInferenceGatewayRoutingWeights.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
kvHeadroom
The weight of the free key-value (KV) cache capacity on the cluster.
- Returns:
- The weight of the free key-value (KV) cache capacity on the cluster.
-
queueDepth
The weight of the number of requests that are waiting on the cluster.
- Returns:
- The weight of the number of requests that are waiting on the cluster.
-
regionProximity
The weight of how close the cluster is to the caller.
- Returns:
- The weight of how close the cluster is to the caller.
-
errorRate
The weight of the recent error rate of the cluster.
- Returns:
- The weight of the recent error rate of the cluster.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<GlobalInferenceGatewayRoutingWeights.Builder,GlobalInferenceGatewayRoutingWeights> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends GlobalInferenceGatewayRoutingWeights.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-