@Generated(value="software.amazon.awssdk:codegen") public final class RecommendationJobContainerConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RecommendationJobContainerConfig.Builder,RecommendationJobContainerConfig>
Specifies mandatory fields for running an Inference Recommender job directly in the CreateInferenceRecommendationsJob API. The fields specified in ContainerConfig override the
corresponding fields in the model package. Use ContainerConfig if you want to specify these fields for
the recommendation job but don't want to edit them in your model package.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RecommendationJobContainerConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RecommendationJobContainerConfig.Builder |
builder() |
String |
domain()
The machine learning domain of the model and its components.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
framework()
The machine learning framework of the container image.
|
String |
frameworkVersion()
The framework version of the container image.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSupportedInstanceTypes()
For responses, this returns true if the service returned a value for the SupportedInstanceTypes property.
|
String |
nearestModelName()
The name of a pre-trained machine learning model benchmarked by Amazon SageMaker Inference Recommender that
matches your model.
|
RecommendationJobPayloadConfig |
payloadConfig()
Specifies the
SamplePayloadUrl and all other sample payload-related fields. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends RecommendationJobContainerConfig.Builder> |
serializableBuilderClass() |
List<String> |
supportedInstanceTypes()
A list of the instance types that are used to generate inferences in real-time.
|
String |
task()
The machine learning task that the model accomplishes.
|
RecommendationJobContainerConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String domain()
The machine learning domain of the model and its components.
Valid Values: COMPUTER_VISION | NATURAL_LANGUAGE_PROCESSING | MACHINE_LEARNING
Valid Values: COMPUTER_VISION | NATURAL_LANGUAGE_PROCESSING | MACHINE_LEARNING
public final String task()
The machine learning task that the model accomplishes.
Valid Values:
IMAGE_CLASSIFICATION | OBJECT_DETECTION | TEXT_GENERATION | IMAGE_SEGMENTATION | FILL_MASK | CLASSIFICATION | REGRESSION | OTHER
Valid Values:
IMAGE_CLASSIFICATION | OBJECT_DETECTION | TEXT_GENERATION | IMAGE_SEGMENTATION | FILL_MASK | CLASSIFICATION | REGRESSION | OTHER
public final String framework()
The machine learning framework of the container image.
Valid Values: TENSORFLOW | PYTORCH | XGBOOST | SAGEMAKER-SCIKIT-LEARN
Valid Values: TENSORFLOW | PYTORCH | XGBOOST | SAGEMAKER-SCIKIT-LEARN
public final String frameworkVersion()
The framework version of the container image.
public final RecommendationJobPayloadConfig payloadConfig()
Specifies the SamplePayloadUrl and all other sample payload-related fields.
SamplePayloadUrl and all other sample payload-related fields.public final String nearestModelName()
The name of a pre-trained machine learning model benchmarked by Amazon SageMaker Inference Recommender that matches your model.
Valid Values:
efficientnetb7 | unet | xgboost | faster-rcnn-resnet101 | nasnetlarge | vgg16 | inception-v3 | mask-rcnn | sagemaker-scikit-learn | densenet201-gluon | resnet18v2-gluon | xception | densenet201 | yolov4 | resnet152 | bert-base-cased | xceptionV1-keras | resnet50 | retinanet
Valid Values:
efficientnetb7 | unet | xgboost | faster-rcnn-resnet101 | nasnetlarge | vgg16 | inception-v3 | mask-rcnn | sagemaker-scikit-learn | densenet201-gluon | resnet18v2-gluon | xception | densenet201 | yolov4 | resnet152 | bert-base-cased | xceptionV1-keras | resnet50 | retinanet
public final boolean hasSupportedInstanceTypes()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<String> supportedInstanceTypes()
A list of the instance types that are used to generate inferences in real-time.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSupportedInstanceTypes() method.
public RecommendationJobContainerConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RecommendationJobContainerConfig.Builder,RecommendationJobContainerConfig>public static RecommendationJobContainerConfig.Builder builder()
public static Class<? extends RecommendationJobContainerConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.