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

com.pulumi.azurenative.appplatform.outputs.CustomContainerResponse 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.appplatform.outputs;

import com.pulumi.azurenative.appplatform.outputs.ImageRegistryCredentialResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class CustomContainerResponse {
    /**
     * @return Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
     * 
     */
    private @Nullable List args;
    /**
     * @return Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
     * 
     */
    private @Nullable List command;
    /**
     * @return Container image of the custom container. This should be in the form of <repository>:<tag> without the server name of the registry
     * 
     */
    private @Nullable String containerImage;
    /**
     * @return Credential of the image registry
     * 
     */
    private @Nullable ImageRegistryCredentialResponse imageRegistryCredential;
    /**
     * @return Language framework of the container image uploaded. Supported values: "springboot", "", null.
     * 
     */
    private @Nullable String languageFramework;
    /**
     * @return The name of the registry that contains the container image
     * 
     */
    private @Nullable String server;

    private CustomContainerResponse() {}
    /**
     * @return Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
     * 
     */
    public List args() {
        return this.args == null ? List.of() : this.args;
    }
    /**
     * @return Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
     * 
     */
    public List command() {
        return this.command == null ? List.of() : this.command;
    }
    /**
     * @return Container image of the custom container. This should be in the form of <repository>:<tag> without the server name of the registry
     * 
     */
    public Optional containerImage() {
        return Optional.ofNullable(this.containerImage);
    }
    /**
     * @return Credential of the image registry
     * 
     */
    public Optional imageRegistryCredential() {
        return Optional.ofNullable(this.imageRegistryCredential);
    }
    /**
     * @return Language framework of the container image uploaded. Supported values: "springboot", "", null.
     * 
     */
    public Optional languageFramework() {
        return Optional.ofNullable(this.languageFramework);
    }
    /**
     * @return The name of the registry that contains the container image
     * 
     */
    public Optional server() {
        return Optional.ofNullable(this.server);
    }

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

    public static Builder builder(CustomContainerResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List args;
        private @Nullable List command;
        private @Nullable String containerImage;
        private @Nullable ImageRegistryCredentialResponse imageRegistryCredential;
        private @Nullable String languageFramework;
        private @Nullable String server;
        public Builder() {}
        public Builder(CustomContainerResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.args = defaults.args;
    	      this.command = defaults.command;
    	      this.containerImage = defaults.containerImage;
    	      this.imageRegistryCredential = defaults.imageRegistryCredential;
    	      this.languageFramework = defaults.languageFramework;
    	      this.server = defaults.server;
        }

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

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

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

            this.containerImage = containerImage;
            return this;
        }
        @CustomType.Setter
        public Builder imageRegistryCredential(@Nullable ImageRegistryCredentialResponse imageRegistryCredential) {

            this.imageRegistryCredential = imageRegistryCredential;
            return this;
        }
        @CustomType.Setter
        public Builder languageFramework(@Nullable String languageFramework) {

            this.languageFramework = languageFramework;
            return this;
        }
        @CustomType.Setter
        public Builder server(@Nullable String server) {

            this.server = server;
            return this;
        }
        public CustomContainerResponse build() {
            final var _resultValue = new CustomContainerResponse();
            _resultValue.args = args;
            _resultValue.command = command;
            _resultValue.containerImage = containerImage;
            _resultValue.imageRegistryCredential = imageRegistryCredential;
            _resultValue.languageFramework = languageFramework;
            _resultValue.server = server;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy