Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.batch; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
The configuration for container-enabled pools.
/** * The configuration for container-enabled pools. */
public class ContainerConfiguration {
The container technology to be used.
/** * The container technology to be used. */
@JsonProperty(value = "type", required = true) private String type;
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.
/** * 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. */
@JsonProperty(value = "containerImageNames") private List<String> containerImageNames;
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.
/** * 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. */
@JsonProperty(value = "containerRegistries") private List<ContainerRegistry> containerRegistries;
Creates an instance of ContainerConfiguration class.
/** * Creates an instance of ContainerConfiguration class. */
public ContainerConfiguration() { type = "DockerCompatible"; }
Get the type value.
Returns:the type value
/** * Get the type value. * * @return the type value */
public String type() { return this.type; }
Set the type value.
Params:
  • type – the type value to set
Returns:the ContainerConfiguration object itself.
/** * Set the type value. * * @param type the type value to set * @return the ContainerConfiguration object itself. */
public ContainerConfiguration withType(String type) { this.type = type; return this; }
Get 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
/** * Get 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. * * @return the containerImageNames value */
public List<String> containerImageNames() { return this.containerImageNames; }
Set 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.
Params:
  • containerImageNames – the containerImageNames value to set
Returns:the ContainerConfiguration object itself.
/** * Set 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. * * @param containerImageNames the containerImageNames value to set * @return the ContainerConfiguration object itself. */
public ContainerConfiguration withContainerImageNames(List<String> containerImageNames) { this.containerImageNames = containerImageNames; return this; }
Get if any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.
Returns:the containerRegistries value
/** * Get if any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here. * * @return the containerRegistries value */
public List<ContainerRegistry> containerRegistries() { return this.containerRegistries; }
Set if any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.
Params:
  • containerRegistries – the containerRegistries value to set
Returns:the ContainerConfiguration object itself.
/** * Set if any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here. * * @param containerRegistries the containerRegistries value to set * @return the ContainerConfiguration object itself. */
public ContainerConfiguration withContainerRegistries(List<ContainerRegistry> containerRegistries) { this.containerRegistries = containerRegistries; return this; } }