ContainerConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. ContainerConfiguration
- com.
Implements
public final class ContainerConfiguration
implements JsonSerializable<ContainerConfiguration>
The configuration for container-enabled pools.
Constructor Summary
Constructor | Description |
---|---|
ContainerConfiguration() |
Creates an instance of Container |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
containerImageNames()
Get the container |
List<Container |
containerRegistries()
Get the container |
static
Container |
fromJson(JsonReader jsonReader)
Reads an instance of Container |
Json |
toJson(JsonWriter jsonWriter) |
Container |
type()
Get the type property: The container technology to be used. |
void |
validate()
Validates the instance. |
Container |
withContainerImageNames(List<String> containerImageNames)
Set the container |
Container |
withContainerRegistries(List<ContainerRegistry> containerRegistries)
Set the container |
Container |
withType(ContainerType type)
Set the type property: The container technology to be used. |
Methods inherited from java.lang.Object
Constructor Details
ContainerConfiguration
public ContainerConfiguration()
Creates an instance of ContainerConfiguration class.
Method Details
containerImageNames
public List
Get the containerImageNames property: This is the full image reference, as would be specified to "docker pull". An image will be sourced from the default Docker registry unless the image is fully qualified with an alternative registry.
Returns:
containerRegistries
public List
Get the containerRegistries property: If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.
Returns:
fromJson
public static ContainerConfiguration fromJson(JsonReader jsonReader)
Reads an instance of ContainerConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
toJson
type
public ContainerType type()
Get the type property: The container technology to be used.
Returns:
validate
public void validate()
Validates the instance.
withContainerImageNames
public ContainerConfiguration withContainerImageNames(List
Set the containerImageNames property: This is the full image reference, as would be specified to "docker pull". An image will be sourced from the default Docker registry unless the image is fully qualified with an alternative registry.
Parameters:
Returns:
withContainerRegistries
public ContainerConfiguration withContainerRegistries(List
Set the containerRegistries property: If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.
Parameters:
Returns:
withType
public ContainerConfiguration withType(ContainerType type)
Set the type property: The container technology to be used.
Parameters:
Returns:
Applies to
Azure SDK for Java