@Generated(value="software.amazon.awssdk:codegen") public final class ContainerDefinition extends Object implements StructuredPojo, ToCopyableBuilder<ContainerDefinition.Builder,ContainerDefinition>
Describes the container, as part of model definition.
Modifier and Type | Class and Description |
---|---|
static interface |
ContainerDefinition.Builder |
Modifier and Type | Method and Description |
---|---|
static ContainerDefinition.Builder |
builder() |
String |
containerHostname()
The DNS host name for the container after Amazon SageMaker deploys it.
|
Map<String,String> |
environment()
The environment variables to set in the Docker container.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
image()
The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
modelDataUrl()
The S3 path where the model artifacts, which result from model training, are stored.
|
static Class<? extends ContainerDefinition.Builder> |
serializableBuilderClass() |
ContainerDefinition.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String containerHostname()
The DNS host name for the container after Amazon SageMaker deploys it.
public 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. For more information, see Using Your Own Algorithms with Amazon SageMaker
public String modelDataUrl()
The 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).
public 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
Environment
string to string map can have length of up to 1024. We support up to 16 entries
in the map.public ContainerDefinition.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ContainerDefinition.Builder,ContainerDefinition>
public static ContainerDefinition.Builder builder()
public static Class<? extends ContainerDefinition.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.