Class InferenceResourceConfig
- java.lang.Object
-
- software.amazon.awssdk.services.cleanroomsml.model.InferenceResourceConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InferenceResourceConfig.Builder,InferenceResourceConfig>
@Generated("software.amazon.awssdk:codegen") public final class InferenceResourceConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InferenceResourceConfig.Builder,InferenceResourceConfig>
Defines the resources used to perform model inference.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInferenceResourceConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InferenceResourceConfig.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerinstanceCount()The number of instances to use.InferenceInstanceTypeinstanceType()The type of instance that is used to perform model inference.StringinstanceTypeAsString()The type of instance that is used to perform model inference.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends InferenceResourceConfig.Builder>serializableBuilderClass()InferenceResourceConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
instanceType
public final InferenceInstanceType instanceType()
The type of instance that is used to perform model inference.
If the service returns an enum value that is not available in the current SDK version,
instanceTypewill returnInferenceInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- The type of instance that is used to perform model inference.
- See Also:
InferenceInstanceType
-
instanceTypeAsString
public final String instanceTypeAsString()
The type of instance that is used to perform model inference.
If the service returns an enum value that is not available in the current SDK version,
instanceTypewill returnInferenceInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- The type of instance that is used to perform model inference.
- See Also:
InferenceInstanceType
-
instanceCount
public final Integer instanceCount()
The number of instances to use.
- Returns:
- The number of instances to use.
-
toBuilder
public InferenceResourceConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InferenceResourceConfig.Builder,InferenceResourceConfig>
-
builder
public static InferenceResourceConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends InferenceResourceConfig.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
-
-