ContainerConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.models.ContainerConfiguration

public final class ContainerConfiguration

The configuration for container-enabled pools.

Constructor Summary

Constructor Description
ContainerConfiguration()

Creates an instance of ContainerConfiguration class.

Method Summary

Modifier and Type Method and Description
List<String> containerImageNames()

Get the containerImageNames property: The collection of container image names.

List<ContainerRegistry> containerRegistries()

Get the containerRegistries property: Additional private registries from which containers can be pulled.

String type()

Get the type property: The container technology to be used.

void validate()

Validates the instance.

ContainerConfiguration withContainerImageNames(List<String> containerImageNames)

Set the containerImageNames property: The collection of container image names.

ContainerConfiguration withContainerRegistries(List<ContainerRegistry> containerRegistries)

Set the containerRegistries property: Additional private registries from which containers can be pulled.

ContainerConfiguration withType(String 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 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.

containerRegistries

public List 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.

type

public String type()

Get the type property: The container technology to be used.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withContainerImageNames

public ContainerConfiguration withContainerImageNames(List containerImageNames)

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.

withContainerRegistries

public ContainerConfiguration withContainerRegistries(List containerRegistries)

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.

withType

public ContainerConfiguration withType(String type)

Set the type property: The container technology to be used.

Parameters:

type - the type value to set.

Returns:

the ContainerConfiguration object itself.

Applies to