@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 |
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.
|
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 |
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 |
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 |
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 |
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 Amazon SageMaker, the inference
code must meet Amazon SageMaker requirements. Amazon 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 Amazon SageMaker, the
inference code must meet Amazon SageMaker requirements. Amazon 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 Amazon SageMaker, the inference
code must meet Amazon SageMaker requirements. Amazon 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 Amazon SageMaker, the
inference code must meet Amazon SageMaker requirements. Amazon 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 Amazon SageMaker, the inference
code must meet Amazon SageMaker requirements. Amazon 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 Amazon SageMaker, the
inference code must meet Amazon SageMaker requirements. Amazon 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 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.