Class ContainerConfiguration
java.lang.Object
com.azure.resourcemanager.batch.models.ContainerConfiguration
The configuration for container-enabled pools.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ContainerConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the containerImageNames property: The collection of container image names.Get the containerRegistries property: Additional private registries from which containers can be pulled.type()
Get the type property: The container technology to be used.void
validate()
Validates the instance.withContainerImageNames
(List<String> containerImageNames) Set the containerImageNames property: The collection of container image names.withContainerRegistries
(List<ContainerRegistry> containerRegistries) Set the containerRegistries property: Additional private registries from which containers can be pulled.Set the type property: The container technology to be used.
-
Constructor Details
-
ContainerConfiguration
public ContainerConfiguration()Creates an instance of ContainerConfiguration class.
-
-
Method Details
-
type
Get the type property: The container technology to be used.- Returns:
- the type value.
-
withType
Set the type property: The container technology to be used.- Parameters:
type
- the type value to set.- Returns:
- the ContainerConfiguration object itself.
-
containerImageNames
Get the containerImageNames property: The collection of container image names.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:
- the containerImageNames value.
-
withContainerImageNames
Set the containerImageNames property: The collection of container image names.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:
containerImageNames
- the containerImageNames value to set.- Returns:
- the ContainerConfiguration object itself.
-
containerRegistries
Get the containerRegistries property: Additional private registries from which containers can be pulled.If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.
- Returns:
- the containerRegistries value.
-
withContainerRegistries
Set the containerRegistries property: Additional private registries from which containers can be pulled.If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.
- Parameters:
containerRegistries
- the containerRegistries value to set.- Returns:
- the ContainerConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-