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

com.pulumi.azurenative.appplatform.inputs.CustomContainerArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.inputs;

import com.pulumi.azurenative.appplatform.inputs.ImageRegistryCredentialArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Custom container payload
 * 
 */
public final class CustomContainerArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomContainerArgs Empty = new CustomContainerArgs();

    /**
     * Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
     * 
     */
    @Import(name="args")
    private @Nullable Output> args;

    /**
     * @return Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
     * 
     */
    public Optional>> args() {
        return Optional.ofNullable(this.args);
    }

    /**
     * Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
     * 
     */
    @Import(name="command")
    private @Nullable Output> command;

    /**
     * @return Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
     * 
     */
    public Optional>> command() {
        return Optional.ofNullable(this.command);
    }

    /**
     * Container image of the custom container. This should be in the form of <repository>:<tag> without the server name of the registry
     * 
     */
    @Import(name="containerImage")
    private @Nullable Output containerImage;

    /**
     * @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);
    }

    /**
     * Credential of the image registry
     * 
     */
    @Import(name="imageRegistryCredential")
    private @Nullable Output imageRegistryCredential;

    /**
     * @return Credential of the image registry
     * 
     */
    public Optional> imageRegistryCredential() {
        return Optional.ofNullable(this.imageRegistryCredential);
    }

    /**
     * Language framework of the container image uploaded. Supported values: "springboot", "", null.
     * 
     */
    @Import(name="languageFramework")
    private @Nullable Output languageFramework;

    /**
     * @return Language framework of the container image uploaded. Supported values: "springboot", "", null.
     * 
     */
    public Optional> languageFramework() {
        return Optional.ofNullable(this.languageFramework);
    }

    /**
     * The name of the registry that contains the container image
     * 
     */
    @Import(name="server")
    private @Nullable Output server;

    /**
     * @return The name of the registry that contains the container image
     * 
     */
    public Optional> server() {
        return Optional.ofNullable(this.server);
    }

    private CustomContainerArgs() {}

    private CustomContainerArgs(CustomContainerArgs $) {
        this.args = $.args;
        this.command = $.command;
        this.containerImage = $.containerImage;
        this.imageRegistryCredential = $.imageRegistryCredential;
        this.languageFramework = $.languageFramework;
        this.server = $.server;
    }

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

    public static final class Builder {
        private CustomContainerArgs $;

        public Builder() {
            $ = new CustomContainerArgs();
        }

        public Builder(CustomContainerArgs defaults) {
            $ = new CustomContainerArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param args Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
         * 
         * @return builder
         * 
         */
        public Builder args(@Nullable Output> args) {
            $.args = args;
            return this;
        }

        /**
         * @param args Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
         * 
         * @return builder
         * 
         */
        public Builder args(List args) {
            return args(Output.of(args));
        }

        /**
         * @param args Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
         * 
         * @return builder
         * 
         */
        public Builder args(String... args) {
            return args(List.of(args));
        }

        /**
         * @param command Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
         * 
         * @return builder
         * 
         */
        public Builder command(@Nullable Output> command) {
            $.command = command;
            return this;
        }

        /**
         * @param command Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
         * 
         * @return builder
         * 
         */
        public Builder command(List command) {
            return command(Output.of(command));
        }

        /**
         * @param command Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
         * 
         * @return builder
         * 
         */
        public Builder command(String... command) {
            return command(List.of(command));
        }

        /**
         * @param containerImage Container image of the custom container. This should be in the form of <repository>:<tag> without the server name of the registry
         * 
         * @return builder
         * 
         */
        public Builder containerImage(@Nullable Output containerImage) {
            $.containerImage = containerImage;
            return this;
        }

        /**
         * @param containerImage Container image of the custom container. This should be in the form of <repository>:<tag> without the server name of the registry
         * 
         * @return builder
         * 
         */
        public Builder containerImage(String containerImage) {
            return containerImage(Output.of(containerImage));
        }

        /**
         * @param imageRegistryCredential Credential of the image registry
         * 
         * @return builder
         * 
         */
        public Builder imageRegistryCredential(@Nullable Output imageRegistryCredential) {
            $.imageRegistryCredential = imageRegistryCredential;
            return this;
        }

        /**
         * @param imageRegistryCredential Credential of the image registry
         * 
         * @return builder
         * 
         */
        public Builder imageRegistryCredential(ImageRegistryCredentialArgs imageRegistryCredential) {
            return imageRegistryCredential(Output.of(imageRegistryCredential));
        }

        /**
         * @param languageFramework Language framework of the container image uploaded. Supported values: "springboot", "", null.
         * 
         * @return builder
         * 
         */
        public Builder languageFramework(@Nullable Output languageFramework) {
            $.languageFramework = languageFramework;
            return this;
        }

        /**
         * @param languageFramework Language framework of the container image uploaded. Supported values: "springboot", "", null.
         * 
         * @return builder
         * 
         */
        public Builder languageFramework(String languageFramework) {
            return languageFramework(Output.of(languageFramework));
        }

        /**
         * @param server The name of the registry that contains the container image
         * 
         * @return builder
         * 
         */
        public Builder server(@Nullable Output server) {
            $.server = server;
            return this;
        }

        /**
         * @param server The name of the registry that contains the container image
         * 
         * @return builder
         * 
         */
        public Builder server(String server) {
            return server(Output.of(server));
        }

        public CustomContainerArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy