BuildContext Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.BuildContext

Implements

public final class BuildContext
implements JsonSerializable<BuildContext>

Configuration settings for Docker build context.

Constructor Summary

Constructor Description
BuildContext()

Creates an instance of BuildContext class.

Method Summary

Modifier and Type Method and Description
String contextUri()

Get the contextUri property: [Required] URI of the Docker build context used to build the image.

String dockerfilePath()

Get the dockerfilePath property: Path to the Dockerfile in the build context.

static BuildContext fromJson(JsonReader jsonReader)

Reads an instance of BuildContext from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BuildContext withContextUri(String contextUri)

Set the contextUri property: [Required] URI of the Docker build context used to build the image.

BuildContext withDockerfilePath(String dockerfilePath)

Set the dockerfilePath property: Path to the Dockerfile in the build context.

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:

the contextUri value.

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:

the dockerfilePath value.

fromJson

public static BuildContext fromJson(JsonReader jsonReader)

Reads an instance of BuildContext from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BuildContext if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

contextUri - the contextUri value to set.

Returns:

the BuildContext object itself.

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:

dockerfilePath - the dockerfilePath value to set.

Returns:

the BuildContext object itself.

Applies to