@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InferenceSpecification extends Object implements Serializable, Cloneable, StructuredPojo
Defines how to perform inference generation after a training job is run.
Constructor and Description |
---|
InferenceSpecification() |
Modifier and Type | Method and Description |
---|---|
InferenceSpecification |
clone() |
boolean |
equals(Object obj) |
List<ModelPackageContainerDefinition> |
getContainers()
The Amazon ECR registry path of the Docker image that contains the inference code.
|
List<String> |
getSupportedContentTypes()
The supported MIME types for the input data.
|
List<String> |
getSupportedRealtimeInferenceInstanceTypes()
A list of the instance types that are used to generate inferences in real-time.
|
List<String> |
getSupportedResponseMIMETypes()
The supported MIME types for the output data.
|
List<String> |
getSupportedTransformInstanceTypes()
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainers(Collection<ModelPackageContainerDefinition> containers)
The Amazon ECR registry path of the Docker image that contains the inference code.
|
void |
setSupportedContentTypes(Collection<String> supportedContentTypes)
The supported MIME types for the input data.
|
void |
setSupportedRealtimeInferenceInstanceTypes(Collection<String> supportedRealtimeInferenceInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.
|
void |
setSupportedResponseMIMETypes(Collection<String> supportedResponseMIMETypes)
The supported MIME types for the output data.
|
void |
setSupportedTransformInstanceTypes(Collection<String> supportedTransformInstanceTypes)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
|
String |
toString()
Returns a string representation of this object.
|
InferenceSpecification |
withContainers(Collection<ModelPackageContainerDefinition> containers)
The Amazon ECR registry path of the Docker image that contains the inference code.
|
InferenceSpecification |
withContainers(ModelPackageContainerDefinition... containers)
The Amazon ECR registry path of the Docker image that contains the inference code.
|
InferenceSpecification |
withSupportedContentTypes(Collection<String> supportedContentTypes)
The supported MIME types for the input data.
|
InferenceSpecification |
withSupportedContentTypes(String... supportedContentTypes)
The supported MIME types for the input data.
|
InferenceSpecification |
withSupportedRealtimeInferenceInstanceTypes(Collection<String> supportedRealtimeInferenceInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.
|
InferenceSpecification |
withSupportedRealtimeInferenceInstanceTypes(ProductionVariantInstanceType... supportedRealtimeInferenceInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.
|
InferenceSpecification |
withSupportedRealtimeInferenceInstanceTypes(String... supportedRealtimeInferenceInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.
|
InferenceSpecification |
withSupportedResponseMIMETypes(Collection<String> supportedResponseMIMETypes)
The supported MIME types for the output data.
|
InferenceSpecification |
withSupportedResponseMIMETypes(String... supportedResponseMIMETypes)
The supported MIME types for the output data.
|
InferenceSpecification |
withSupportedTransformInstanceTypes(Collection<String> supportedTransformInstanceTypes)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
|
InferenceSpecification |
withSupportedTransformInstanceTypes(String... supportedTransformInstanceTypes)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
|
InferenceSpecification |
withSupportedTransformInstanceTypes(TransformInstanceType... supportedTransformInstanceTypes)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
|
public List<ModelPackageContainerDefinition> getContainers()
The Amazon ECR registry path of the Docker image that contains the inference code.
public void setContainers(Collection<ModelPackageContainerDefinition> containers)
The Amazon ECR registry path of the Docker image that contains the inference code.
containers
- The Amazon ECR registry path of the Docker image that contains the inference code.public InferenceSpecification withContainers(ModelPackageContainerDefinition... containers)
The Amazon ECR registry path of the Docker image that contains the inference code.
NOTE: This method appends the values to the existing list (if any). Use
setContainers(java.util.Collection)
or withContainers(java.util.Collection)
if you want to
override the existing values.
containers
- The Amazon ECR registry path of the Docker image that contains the inference code.public InferenceSpecification withContainers(Collection<ModelPackageContainerDefinition> containers)
The Amazon ECR registry path of the Docker image that contains the inference code.
containers
- The Amazon ECR registry path of the Docker image that contains the inference code.public List<String> getSupportedTransformInstanceTypes()
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
This parameter is required for unversioned models, and optional for versioned models.
This parameter is required for unversioned models, and optional for versioned models.
TransformInstanceType
public void setSupportedTransformInstanceTypes(Collection<String> supportedTransformInstanceTypes)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
This parameter is required for unversioned models, and optional for versioned models.
supportedTransformInstanceTypes
- A list of the instance types on which a transformation job can be run or on which an endpoint can be
deployed.
This parameter is required for unversioned models, and optional for versioned models.
TransformInstanceType
public InferenceSpecification withSupportedTransformInstanceTypes(String... supportedTransformInstanceTypes)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
This parameter is required for unversioned models, and optional for versioned models.
NOTE: This method appends the values to the existing list (if any). Use
setSupportedTransformInstanceTypes(java.util.Collection)
or
withSupportedTransformInstanceTypes(java.util.Collection)
if you want to override the existing values.
supportedTransformInstanceTypes
- A list of the instance types on which a transformation job can be run or on which an endpoint can be
deployed.
This parameter is required for unversioned models, and optional for versioned models.
TransformInstanceType
public InferenceSpecification withSupportedTransformInstanceTypes(Collection<String> supportedTransformInstanceTypes)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
This parameter is required for unversioned models, and optional for versioned models.
supportedTransformInstanceTypes
- A list of the instance types on which a transformation job can be run or on which an endpoint can be
deployed.
This parameter is required for unversioned models, and optional for versioned models.
TransformInstanceType
public InferenceSpecification withSupportedTransformInstanceTypes(TransformInstanceType... supportedTransformInstanceTypes)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
This parameter is required for unversioned models, and optional for versioned models.
supportedTransformInstanceTypes
- A list of the instance types on which a transformation job can be run or on which an endpoint can be
deployed.
This parameter is required for unversioned models, and optional for versioned models.
TransformInstanceType
public List<String> getSupportedRealtimeInferenceInstanceTypes()
A list of the instance types that are used to generate inferences in real-time.
This parameter is required for unversioned models, and optional for versioned models.
This parameter is required for unversioned models, and optional for versioned models.
ProductionVariantInstanceType
public void setSupportedRealtimeInferenceInstanceTypes(Collection<String> supportedRealtimeInferenceInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.
This parameter is required for unversioned models, and optional for versioned models.
supportedRealtimeInferenceInstanceTypes
- A list of the instance types that are used to generate inferences in real-time.
This parameter is required for unversioned models, and optional for versioned models.
ProductionVariantInstanceType
public InferenceSpecification withSupportedRealtimeInferenceInstanceTypes(String... supportedRealtimeInferenceInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.
This parameter is required for unversioned models, and optional for versioned models.
NOTE: This method appends the values to the existing list (if any). Use
setSupportedRealtimeInferenceInstanceTypes(java.util.Collection)
or
withSupportedRealtimeInferenceInstanceTypes(java.util.Collection)
if you want to override the existing
values.
supportedRealtimeInferenceInstanceTypes
- A list of the instance types that are used to generate inferences in real-time.
This parameter is required for unversioned models, and optional for versioned models.
ProductionVariantInstanceType
public InferenceSpecification withSupportedRealtimeInferenceInstanceTypes(Collection<String> supportedRealtimeInferenceInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.
This parameter is required for unversioned models, and optional for versioned models.
supportedRealtimeInferenceInstanceTypes
- A list of the instance types that are used to generate inferences in real-time.
This parameter is required for unversioned models, and optional for versioned models.
ProductionVariantInstanceType
public InferenceSpecification withSupportedRealtimeInferenceInstanceTypes(ProductionVariantInstanceType... supportedRealtimeInferenceInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.
This parameter is required for unversioned models, and optional for versioned models.
supportedRealtimeInferenceInstanceTypes
- A list of the instance types that are used to generate inferences in real-time.
This parameter is required for unversioned models, and optional for versioned models.
ProductionVariantInstanceType
public List<String> getSupportedContentTypes()
The supported MIME types for the input data.
public void setSupportedContentTypes(Collection<String> supportedContentTypes)
The supported MIME types for the input data.
supportedContentTypes
- The supported MIME types for the input data.public InferenceSpecification withSupportedContentTypes(String... supportedContentTypes)
The supported MIME types for the input data.
NOTE: This method appends the values to the existing list (if any). Use
setSupportedContentTypes(java.util.Collection)
or
withSupportedContentTypes(java.util.Collection)
if you want to override the existing values.
supportedContentTypes
- The supported MIME types for the input data.public InferenceSpecification withSupportedContentTypes(Collection<String> supportedContentTypes)
The supported MIME types for the input data.
supportedContentTypes
- The supported MIME types for the input data.public List<String> getSupportedResponseMIMETypes()
The supported MIME types for the output data.
public void setSupportedResponseMIMETypes(Collection<String> supportedResponseMIMETypes)
The supported MIME types for the output data.
supportedResponseMIMETypes
- The supported MIME types for the output data.public InferenceSpecification withSupportedResponseMIMETypes(String... supportedResponseMIMETypes)
The supported MIME types for the output data.
NOTE: This method appends the values to the existing list (if any). Use
setSupportedResponseMIMETypes(java.util.Collection)
or
withSupportedResponseMIMETypes(java.util.Collection)
if you want to override the existing values.
supportedResponseMIMETypes
- The supported MIME types for the output data.public InferenceSpecification withSupportedResponseMIMETypes(Collection<String> supportedResponseMIMETypes)
The supported MIME types for the output data.
supportedResponseMIMETypes
- The supported MIME types for the output data.public String toString()
toString
in class Object
Object.toString()
public InferenceSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.