BatchContainerConfiguration Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchContainerConfiguration
- com.
Implements
public final class BatchContainerConfiguration
implements JsonSerializable<BatchContainerConfiguration>
The configuration for container-enabled Pools.
Constructor Summary
| Constructor | Description |
|---|---|
| BatchContainerConfiguration(ContainerType type) |
Creates an instance of Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
| List<String> |
getContainerImageNames()
Get the container |
|
List<Container |
getContainerRegistries()
Get the container |
|
Container |
getType()
Get the type property: The container technology to be used. |
|
Batch |
setContainerImageNames(List<String> containerImageNames)
Set the container |
|
Batch |
setContainerRegistries(List<ContainerRegistryReference> containerRegistries)
Set the container |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
BatchContainerConfiguration
public BatchContainerConfiguration(ContainerType type)
Creates an instance of BatchContainerConfiguration class.
Parameters:
Method Details
fromJson
public static BatchContainerConfiguration fromJson(JsonReader jsonReader)
Reads an instance of BatchContainerConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
getContainerImageNames
public List<String> getContainerImageNames()
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:
getContainerRegistries
public List<ContainerRegistryReference> getContainerRegistries()
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:
getType
public ContainerType getType()
Get the type property: The container technology to be used.
Returns:
setContainerImageNames
public BatchContainerConfiguration setContainerImageNames(List<String> 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:
Returns:
setContainerRegistries
public BatchContainerConfiguration setContainerRegistries(List<ContainerRegistryReference> 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:
Returns: