BuildContext Class
- java.
lang. Object - com.
azure. resourcemanager. machinelearning. models. BuildContext
- com.
Implements
public final class BuildContext
implements JsonSerializable<BuildContext>
Configuration settings for Docker build context.
Constructor Summary
| Constructor | Description |
|---|---|
| BuildContext() |
Creates an instance of Build |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
contextUri()
Get the context |
| String |
dockerfilePath()
Get the dockerfile |
|
static
Build |
fromJson(JsonReader jsonReader)
Reads an instance of Build |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Build |
withContextUri(String contextUri)
Set the context |
|
Build |
withDockerfilePath(String dockerfilePath)
Set the dockerfile |
Methods inherited from java.lang.Object
Constructor Details
BuildContext
public BuildContext()
Creates an instance of BuildContext class.
Method Details
contextUri
public String contextUri()
Get the contextUri property: [Required] URI of the Docker build context used to build the image. Supports blob URIs on environment creation and may return blob or Git URIs. <seealso href="https://docs.docker.com/engine/reference/commandline/build/\#extended-description" />.
Returns:
dockerfilePath
public String dockerfilePath()
Get the dockerfilePath property: Path to the Dockerfile in the build context. <seealso href="https://docs.docker.com/engine/reference/builder/" />.
Returns:
fromJson
public static BuildContext fromJson(JsonReader jsonReader)
Reads an instance of BuildContext from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withContextUri
public BuildContext withContextUri(String contextUri)
Set the contextUri property: [Required] URI of the Docker build context used to build the image. Supports blob URIs on environment creation and may return blob or Git URIs. <seealso href="https://docs.docker.com/engine/reference/commandline/build/\#extended-description" />.
Parameters:
Returns:
withDockerfilePath
public BuildContext withDockerfilePath(String dockerfilePath)
Set the dockerfilePath property: Path to the Dockerfile in the build context. <seealso href="https://docs.docker.com/engine/reference/builder/" />.
Parameters:
Returns: