All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.batch.outputs.ContainerConfigurationResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.batch.outputs;

import com.pulumi.azurenative.batch.outputs.ContainerRegistryResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class ContainerConfigurationResponse {
    /**
     * @return 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.
     * 
     */
    private @Nullable List containerImageNames;
    /**
     * @return If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.
     * 
     */
    private @Nullable List containerRegistries;
    private String type;

    private ContainerConfigurationResponse() {}
    /**
     * @return 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.
     * 
     */
    public List containerImageNames() {
        return this.containerImageNames == null ? List.of() : this.containerImageNames;
    }
    /**
     * @return If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.
     * 
     */
    public List containerRegistries() {
        return this.containerRegistries == null ? List.of() : this.containerRegistries;
    }
    public String type() {
        return this.type;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ContainerConfigurationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List containerImageNames;
        private @Nullable List containerRegistries;
        private String type;
        public Builder() {}
        public Builder(ContainerConfigurationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.containerImageNames = defaults.containerImageNames;
    	      this.containerRegistries = defaults.containerRegistries;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder containerImageNames(@Nullable List containerImageNames) {

            this.containerImageNames = containerImageNames;
            return this;
        }
        public Builder containerImageNames(String... containerImageNames) {
            return containerImageNames(List.of(containerImageNames));
        }
        @CustomType.Setter
        public Builder containerRegistries(@Nullable List containerRegistries) {

            this.containerRegistries = containerRegistries;
            return this;
        }
        public Builder containerRegistries(ContainerRegistryResponse... containerRegistries) {
            return containerRegistries(List.of(containerRegistries));
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("ContainerConfigurationResponse", "type");
            }
            this.type = type;
            return this;
        }
        public ContainerConfigurationResponse build() {
            final var _resultValue = new ContainerConfigurationResponse();
            _resultValue.containerImageNames = containerImageNames;
            _resultValue.containerRegistries = containerRegistries;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy