Package com.azure.compute.batch.models
Class ContainerConfiguration
java.lang.Object
com.azure.compute.batch.models.ContainerConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerConfiguration>
public final class ContainerConfiguration
extends Object
implements com.azure.json.JsonSerializable<ContainerConfiguration>
The configuration for container-enabled Pools.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerConfiguration
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerConfiguration from the JsonReader.Get the containerImageNames property: The collection of container Image names.Get the containerRegistries property: Additional private registries from which containers can be pulled.getType()
Get the type property: The container technology to be used.setContainerImageNames
(List<String> containerImageNames) Set the containerImageNames property: The collection of container Image names.setContainerRegistries
(List<ContainerRegistryReference> containerRegistries) Set the containerRegistries property: Additional private registries from which containers can be pulled.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerConfiguration
Creates an instance of ContainerConfiguration class.- Parameters:
type
- the type value to set.
-
-
Method Details
-
getType
Get the type property: The container technology to be used.- Returns:
- the type value.
-
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:
- the containerImageNames value.
-
setContainerImageNames
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.
-
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:
- the containerRegistries value.
-
setContainerRegistries
public ContainerConfiguration 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:
containerRegistries
- the containerRegistries value to set.- Returns:
- the ContainerConfiguration object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ContainerConfiguration>
- Throws:
IOException
-
fromJson
public static ContainerConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ContainerConfiguration from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ContainerConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the ContainerConfiguration.
-