@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModelPackageContainerDefinition extends Object implements Serializable, Cloneable, StructuredPojo
Describes the Docker container for the model package.
Constructor and Description |
---|
ModelPackageContainerDefinition() |
Modifier and Type | Method and Description |
---|---|
ModelPackageContainerDefinition |
addEnvironmentEntry(String key,
String value)
Add a single Environment entry
|
ModelPackageContainerDefinition |
clearEnvironmentEntries()
Removes all the entries added into Environment.
|
ModelPackageContainerDefinition |
clone() |
boolean |
equals(Object obj) |
String |
getContainerHostname()
The DNS host name for the Docker container.
|
Map<String,String> |
getEnvironment()
The environment variables to set in the Docker container.
|
String |
getFramework()
The machine learning framework of the model package container image.
|
String |
getFrameworkVersion()
The framework version of the Model Package Container Image.
|
String |
getImage()
The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.
|
String |
getImageDigest()
An MD5 hash of the training algorithm that identifies the Docker image used for training.
|
String |
getModelDataUrl()
The Amazon S3 path where the model artifacts, which result from model training, are stored.
|
ModelInput |
getModelInput()
A structure with Model Input details.
|
String |
getNearestModelName()
The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that
matches your model.
|
String |
getProductId()
The Amazon Web Services Marketplace product ID of the model package.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainerHostname(String containerHostname)
The DNS host name for the Docker container.
|
void |
setEnvironment(Map<String,String> environment)
The environment variables to set in the Docker container.
|
void |
setFramework(String framework)
The machine learning framework of the model package container image.
|
void |
setFrameworkVersion(String frameworkVersion)
The framework version of the Model Package Container Image.
|
void |
setImage(String image)
The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.
|
void |
setImageDigest(String imageDigest)
An MD5 hash of the training algorithm that identifies the Docker image used for training.
|
void |
setModelDataUrl(String modelDataUrl)
The Amazon S3 path where the model artifacts, which result from model training, are stored.
|
void |
setModelInput(ModelInput modelInput)
A structure with Model Input details.
|
void |
setNearestModelName(String nearestModelName)
The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that
matches your model.
|
void |
setProductId(String productId)
The Amazon Web Services Marketplace product ID of the model package.
|
String |
toString()
Returns a string representation of this object.
|
ModelPackageContainerDefinition |
withContainerHostname(String containerHostname)
The DNS host name for the Docker container.
|
ModelPackageContainerDefinition |
withEnvironment(Map<String,String> environment)
The environment variables to set in the Docker container.
|
ModelPackageContainerDefinition |
withFramework(String framework)
The machine learning framework of the model package container image.
|
ModelPackageContainerDefinition |
withFrameworkVersion(String frameworkVersion)
The framework version of the Model Package Container Image.
|
ModelPackageContainerDefinition |
withImage(String image)
The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.
|
ModelPackageContainerDefinition |
withImageDigest(String imageDigest)
An MD5 hash of the training algorithm that identifies the Docker image used for training.
|
ModelPackageContainerDefinition |
withModelDataUrl(String modelDataUrl)
The Amazon S3 path where the model artifacts, which result from model training, are stored.
|
ModelPackageContainerDefinition |
withModelInput(ModelInput modelInput)
A structure with Model Input details.
|
ModelPackageContainerDefinition |
withNearestModelName(String nearestModelName)
The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that
matches your model.
|
ModelPackageContainerDefinition |
withProductId(String productId)
The Amazon Web Services Marketplace product ID of the model package.
|
public void setContainerHostname(String containerHostname)
The DNS host name for the Docker container.
containerHostname
- The DNS host name for the Docker container.public String getContainerHostname()
The DNS host name for the Docker container.
public ModelPackageContainerDefinition withContainerHostname(String containerHostname)
The DNS host name for the Docker container.
containerHostname
- The DNS host name for the Docker container.public void setImage(String image)
The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.
If you are using your own custom algorithm instead of an algorithm provided by SageMaker, the inference code must
meet SageMaker requirements. SageMaker supports both registry/repository[:tag]
and
registry/repository[@digest]
image path formats. For more information, see Using Your Own Algorithms with Amazon
SageMaker.
image
- The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.
If you are using your own custom algorithm instead of an algorithm provided by SageMaker, the inference
code must meet SageMaker requirements. SageMaker supports both registry/repository[:tag]
and
registry/repository[@digest]
image path formats. For more information, see Using Your Own Algorithms with
Amazon SageMaker.
public String getImage()
The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.
If you are using your own custom algorithm instead of an algorithm provided by SageMaker, the inference code must
meet SageMaker requirements. SageMaker supports both registry/repository[:tag]
and
registry/repository[@digest]
image path formats. For more information, see Using Your Own Algorithms with Amazon
SageMaker.
If you are using your own custom algorithm instead of an algorithm provided by SageMaker, the inference
code must meet SageMaker requirements. SageMaker supports both registry/repository[:tag]
and
registry/repository[@digest]
image path formats. For more information, see Using Your Own Algorithms
with Amazon SageMaker.
public ModelPackageContainerDefinition withImage(String image)
The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.
If you are using your own custom algorithm instead of an algorithm provided by SageMaker, the inference code must
meet SageMaker requirements. SageMaker supports both registry/repository[:tag]
and
registry/repository[@digest]
image path formats. For more information, see Using Your Own Algorithms with Amazon
SageMaker.
image
- The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.
If you are using your own custom algorithm instead of an algorithm provided by SageMaker, the inference
code must meet SageMaker requirements. SageMaker supports both registry/repository[:tag]
and
registry/repository[@digest]
image path formats. For more information, see Using Your Own Algorithms with
Amazon SageMaker.
public void setImageDigest(String imageDigest)
An MD5 hash of the training algorithm that identifies the Docker image used for training.
imageDigest
- An MD5 hash of the training algorithm that identifies the Docker image used for training.public String getImageDigest()
An MD5 hash of the training algorithm that identifies the Docker image used for training.
public ModelPackageContainerDefinition withImageDigest(String imageDigest)
An MD5 hash of the training algorithm that identifies the Docker image used for training.
imageDigest
- An MD5 hash of the training algorithm that identifies the Docker image used for training.public void setModelDataUrl(String modelDataUrl)
The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point
to a single gzip
compressed tar archive (.tar.gz
suffix).
The model artifacts must be in an S3 bucket that is in the same region as the model package.
modelDataUrl
- The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must
point to a single gzip
compressed tar archive (.tar.gz
suffix). The model artifacts must be in an S3 bucket that is in the same region as the model package.
public String getModelDataUrl()
The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point
to a single gzip
compressed tar archive (.tar.gz
suffix).
The model artifacts must be in an S3 bucket that is in the same region as the model package.
gzip
compressed tar archive (.tar.gz
suffix). The model artifacts must be in an S3 bucket that is in the same region as the model package.
public ModelPackageContainerDefinition withModelDataUrl(String modelDataUrl)
The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point
to a single gzip
compressed tar archive (.tar.gz
suffix).
The model artifacts must be in an S3 bucket that is in the same region as the model package.
modelDataUrl
- The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must
point to a single gzip
compressed tar archive (.tar.gz
suffix). The model artifacts must be in an S3 bucket that is in the same region as the model package.
public void setProductId(String productId)
The Amazon Web Services Marketplace product ID of the model package.
productId
- The Amazon Web Services Marketplace product ID of the model package.public String getProductId()
The Amazon Web Services Marketplace product ID of the model package.
public ModelPackageContainerDefinition withProductId(String productId)
The Amazon Web Services Marketplace product ID of the model package.
productId
- The Amazon Web Services Marketplace product ID of the model package.public Map<String,String> getEnvironment()
The environment variables to set in the Docker container. Each key and value in the Environment
string to string map can have length of up to 1024. We support up to 16 entries in the map.
Environment
string to string map can have length of up to 1024. We support up to 16 entries
in the map.public void setEnvironment(Map<String,String> environment)
The environment variables to set in the Docker container. Each key and value in the Environment
string to string map can have length of up to 1024. We support up to 16 entries in the map.
environment
- The environment variables to set in the Docker container. Each key and value in the
Environment
string to string map can have length of up to 1024. We support up to 16 entries
in the map.public ModelPackageContainerDefinition withEnvironment(Map<String,String> environment)
The environment variables to set in the Docker container. Each key and value in the Environment
string to string map can have length of up to 1024. We support up to 16 entries in the map.
environment
- The environment variables to set in the Docker container. Each key and value in the
Environment
string to string map can have length of up to 1024. We support up to 16 entries
in the map.public ModelPackageContainerDefinition addEnvironmentEntry(String key, String value)
public ModelPackageContainerDefinition clearEnvironmentEntries()
public void setModelInput(ModelInput modelInput)
A structure with Model Input details.
modelInput
- A structure with Model Input details.public ModelInput getModelInput()
A structure with Model Input details.
public ModelPackageContainerDefinition withModelInput(ModelInput modelInput)
A structure with Model Input details.
modelInput
- A structure with Model Input details.public void setFramework(String framework)
The machine learning framework of the model package container image.
framework
- The machine learning framework of the model package container image.public String getFramework()
The machine learning framework of the model package container image.
public ModelPackageContainerDefinition withFramework(String framework)
The machine learning framework of the model package container image.
framework
- The machine learning framework of the model package container image.public void setFrameworkVersion(String frameworkVersion)
The framework version of the Model Package Container Image.
frameworkVersion
- The framework version of the Model Package Container Image.public String getFrameworkVersion()
The framework version of the Model Package Container Image.
public ModelPackageContainerDefinition withFrameworkVersion(String frameworkVersion)
The framework version of the Model Package Container Image.
frameworkVersion
- The framework version of the Model Package Container Image.public void setNearestModelName(String nearestModelName)
The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that
matches your model. You can find a list of benchmarked models by calling ListModelMetadata
.
nearestModelName
- The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model
that matches your model. You can find a list of benchmarked models by calling
ListModelMetadata
.public String getNearestModelName()
The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that
matches your model. You can find a list of benchmarked models by calling ListModelMetadata
.
ListModelMetadata
.public ModelPackageContainerDefinition withNearestModelName(String nearestModelName)
The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that
matches your model. You can find a list of benchmarked models by calling ListModelMetadata
.
nearestModelName
- The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model
that matches your model. You can find a list of benchmarked models by calling
ListModelMetadata
.public String toString()
toString
in class Object
Object.toString()
public ModelPackageContainerDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.