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

com.pulumi.azurenative.web.WebAppSiteContainerSlotArgs 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.web;

import com.pulumi.azurenative.web.enums.AuthType;
import com.pulumi.azurenative.web.inputs.EnvironmentVariableArgs;
import com.pulumi.azurenative.web.inputs.VolumeMountArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class WebAppSiteContainerSlotArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebAppSiteContainerSlotArgs Empty = new WebAppSiteContainerSlotArgs();

    /**
     * Auth Type
     * 
     */
    @Import(name="authType")
    private @Nullable Output authType;

    /**
     * @return Auth Type
     * 
     */
    public Optional> authType() {
        return Optional.ofNullable(this.authType);
    }

    /**
     * Site Container Name
     * 
     */
    @Import(name="containerName")
    private @Nullable Output containerName;

    /**
     * @return Site Container Name
     * 
     */
    public Optional> containerName() {
        return Optional.ofNullable(this.containerName);
    }

    /**
     * List of environment variables
     * 
     */
    @Import(name="environmentVariables")
    private @Nullable Output> environmentVariables;

    /**
     * @return List of environment variables
     * 
     */
    public Optional>> environmentVariables() {
        return Optional.ofNullable(this.environmentVariables);
    }

    /**
     * Image Name
     * 
     */
    @Import(name="image", required=true)
    private Output image;

    /**
     * @return Image Name
     * 
     */
    public Output image() {
        return this.image;
    }

    /**
     * <code>true</code> if the container is the main site container; <code>false</code> otherwise.
     * 
     */
    @Import(name="isMain", required=true)
    private Output isMain;

    /**
     * @return <code>true</code> if the container is the main site container; <code>false</code> otherwise.
     * 
     */
    public Output isMain() {
        return this.isMain;
    }

    /**
     * Kind of resource.
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return Kind of resource.
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * Name of the app.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of the app.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Password Secret
     * 
     */
    @Import(name="passwordSecret")
    private @Nullable Output passwordSecret;

    /**
     * @return Password Secret
     * 
     */
    public Optional> passwordSecret() {
        return Optional.ofNullable(this.passwordSecret);
    }

    /**
     * Name of the resource group to which the resource belongs.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the resource group to which the resource belongs.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Name of the deployment slot. If a slot is not specified, the API will create the container for the production slot.
     * 
     */
    @Import(name="slot", required=true)
    private Output slot;

    /**
     * @return Name of the deployment slot. If a slot is not specified, the API will create the container for the production slot.
     * 
     */
    public Output slot() {
        return this.slot;
    }

    /**
     * StartUp Command
     * 
     */
    @Import(name="startUpCommand")
    private @Nullable Output startUpCommand;

    /**
     * @return StartUp Command
     * 
     */
    public Optional> startUpCommand() {
        return Optional.ofNullable(this.startUpCommand);
    }

    /**
     * Target Port
     * 
     */
    @Import(name="targetPort")
    private @Nullable Output targetPort;

    /**
     * @return Target Port
     * 
     */
    public Optional> targetPort() {
        return Optional.ofNullable(this.targetPort);
    }

    /**
     * UserManagedIdentity ClientId
     * 
     */
    @Import(name="userManagedIdentityClientId")
    private @Nullable Output userManagedIdentityClientId;

    /**
     * @return UserManagedIdentity ClientId
     * 
     */
    public Optional> userManagedIdentityClientId() {
        return Optional.ofNullable(this.userManagedIdentityClientId);
    }

    /**
     * User Name
     * 
     */
    @Import(name="userName")
    private @Nullable Output userName;

    /**
     * @return User Name
     * 
     */
    public Optional> userName() {
        return Optional.ofNullable(this.userName);
    }

    /**
     * List of volume mounts
     * 
     */
    @Import(name="volumeMounts")
    private @Nullable Output> volumeMounts;

    /**
     * @return List of volume mounts
     * 
     */
    public Optional>> volumeMounts() {
        return Optional.ofNullable(this.volumeMounts);
    }

    private WebAppSiteContainerSlotArgs() {}

    private WebAppSiteContainerSlotArgs(WebAppSiteContainerSlotArgs $) {
        this.authType = $.authType;
        this.containerName = $.containerName;
        this.environmentVariables = $.environmentVariables;
        this.image = $.image;
        this.isMain = $.isMain;
        this.kind = $.kind;
        this.name = $.name;
        this.passwordSecret = $.passwordSecret;
        this.resourceGroupName = $.resourceGroupName;
        this.slot = $.slot;
        this.startUpCommand = $.startUpCommand;
        this.targetPort = $.targetPort;
        this.userManagedIdentityClientId = $.userManagedIdentityClientId;
        this.userName = $.userName;
        this.volumeMounts = $.volumeMounts;
    }

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

    public static final class Builder {
        private WebAppSiteContainerSlotArgs $;

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

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

        /**
         * @param authType Auth Type
         * 
         * @return builder
         * 
         */
        public Builder authType(@Nullable Output authType) {
            $.authType = authType;
            return this;
        }

        /**
         * @param authType Auth Type
         * 
         * @return builder
         * 
         */
        public Builder authType(AuthType authType) {
            return authType(Output.of(authType));
        }

        /**
         * @param containerName Site Container Name
         * 
         * @return builder
         * 
         */
        public Builder containerName(@Nullable Output containerName) {
            $.containerName = containerName;
            return this;
        }

        /**
         * @param containerName Site Container Name
         * 
         * @return builder
         * 
         */
        public Builder containerName(String containerName) {
            return containerName(Output.of(containerName));
        }

        /**
         * @param environmentVariables List of environment variables
         * 
         * @return builder
         * 
         */
        public Builder environmentVariables(@Nullable Output> environmentVariables) {
            $.environmentVariables = environmentVariables;
            return this;
        }

        /**
         * @param environmentVariables List of environment variables
         * 
         * @return builder
         * 
         */
        public Builder environmentVariables(List environmentVariables) {
            return environmentVariables(Output.of(environmentVariables));
        }

        /**
         * @param environmentVariables List of environment variables
         * 
         * @return builder
         * 
         */
        public Builder environmentVariables(EnvironmentVariableArgs... environmentVariables) {
            return environmentVariables(List.of(environmentVariables));
        }

        /**
         * @param image Image Name
         * 
         * @return builder
         * 
         */
        public Builder image(Output image) {
            $.image = image;
            return this;
        }

        /**
         * @param image Image Name
         * 
         * @return builder
         * 
         */
        public Builder image(String image) {
            return image(Output.of(image));
        }

        /**
         * @param isMain <code>true</code> if the container is the main site container; <code>false</code> otherwise.
         * 
         * @return builder
         * 
         */
        public Builder isMain(Output isMain) {
            $.isMain = isMain;
            return this;
        }

        /**
         * @param isMain <code>true</code> if the container is the main site container; <code>false</code> otherwise.
         * 
         * @return builder
         * 
         */
        public Builder isMain(Boolean isMain) {
            return isMain(Output.of(isMain));
        }

        /**
         * @param kind Kind of resource.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Kind of resource.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param name Name of the app.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the app.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param passwordSecret Password Secret
         * 
         * @return builder
         * 
         */
        public Builder passwordSecret(@Nullable Output passwordSecret) {
            $.passwordSecret = passwordSecret;
            return this;
        }

        /**
         * @param passwordSecret Password Secret
         * 
         * @return builder
         * 
         */
        public Builder passwordSecret(String passwordSecret) {
            return passwordSecret(Output.of(passwordSecret));
        }

        /**
         * @param resourceGroupName Name of the resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param slot Name of the deployment slot. If a slot is not specified, the API will create the container for the production slot.
         * 
         * @return builder
         * 
         */
        public Builder slot(Output slot) {
            $.slot = slot;
            return this;
        }

        /**
         * @param slot Name of the deployment slot. If a slot is not specified, the API will create the container for the production slot.
         * 
         * @return builder
         * 
         */
        public Builder slot(String slot) {
            return slot(Output.of(slot));
        }

        /**
         * @param startUpCommand StartUp Command
         * 
         * @return builder
         * 
         */
        public Builder startUpCommand(@Nullable Output startUpCommand) {
            $.startUpCommand = startUpCommand;
            return this;
        }

        /**
         * @param startUpCommand StartUp Command
         * 
         * @return builder
         * 
         */
        public Builder startUpCommand(String startUpCommand) {
            return startUpCommand(Output.of(startUpCommand));
        }

        /**
         * @param targetPort Target Port
         * 
         * @return builder
         * 
         */
        public Builder targetPort(@Nullable Output targetPort) {
            $.targetPort = targetPort;
            return this;
        }

        /**
         * @param targetPort Target Port
         * 
         * @return builder
         * 
         */
        public Builder targetPort(String targetPort) {
            return targetPort(Output.of(targetPort));
        }

        /**
         * @param userManagedIdentityClientId UserManagedIdentity ClientId
         * 
         * @return builder
         * 
         */
        public Builder userManagedIdentityClientId(@Nullable Output userManagedIdentityClientId) {
            $.userManagedIdentityClientId = userManagedIdentityClientId;
            return this;
        }

        /**
         * @param userManagedIdentityClientId UserManagedIdentity ClientId
         * 
         * @return builder
         * 
         */
        public Builder userManagedIdentityClientId(String userManagedIdentityClientId) {
            return userManagedIdentityClientId(Output.of(userManagedIdentityClientId));
        }

        /**
         * @param userName User Name
         * 
         * @return builder
         * 
         */
        public Builder userName(@Nullable Output userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName User Name
         * 
         * @return builder
         * 
         */
        public Builder userName(String userName) {
            return userName(Output.of(userName));
        }

        /**
         * @param volumeMounts List of volume mounts
         * 
         * @return builder
         * 
         */
        public Builder volumeMounts(@Nullable Output> volumeMounts) {
            $.volumeMounts = volumeMounts;
            return this;
        }

        /**
         * @param volumeMounts List of volume mounts
         * 
         * @return builder
         * 
         */
        public Builder volumeMounts(List volumeMounts) {
            return volumeMounts(Output.of(volumeMounts));
        }

        /**
         * @param volumeMounts List of volume mounts
         * 
         * @return builder
         * 
         */
        public Builder volumeMounts(VolumeMountArgs... volumeMounts) {
            return volumeMounts(List.of(volumeMounts));
        }

        public WebAppSiteContainerSlotArgs build() {
            if ($.image == null) {
                throw new MissingRequiredPropertyException("WebAppSiteContainerSlotArgs", "image");
            }
            if ($.isMain == null) {
                throw new MissingRequiredPropertyException("WebAppSiteContainerSlotArgs", "isMain");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("WebAppSiteContainerSlotArgs", "name");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("WebAppSiteContainerSlotArgs", "resourceGroupName");
            }
            if ($.slot == null) {
                throw new MissingRequiredPropertyException("WebAppSiteContainerSlotArgs", "slot");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy