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

com.pulumi.azurenative.web.WebAppDeploymentArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WebAppDeploymentArgs Empty = new WebAppDeploymentArgs();

    /**
     * True if deployment is currently active, false if completed and null if not started.
     * 
     */
    @Import(name="active")
    private @Nullable Output active;

    /**
     * @return True if deployment is currently active, false if completed and null if not started.
     * 
     */
    public Optional> active() {
        return Optional.ofNullable(this.active);
    }

    /**
     * Who authored the deployment.
     * 
     */
    @Import(name="author")
    private @Nullable Output author;

    /**
     * @return Who authored the deployment.
     * 
     */
    public Optional> author() {
        return Optional.ofNullable(this.author);
    }

    /**
     * Author email.
     * 
     */
    @Import(name="authorEmail")
    private @Nullable Output authorEmail;

    /**
     * @return Author email.
     * 
     */
    public Optional> authorEmail() {
        return Optional.ofNullable(this.authorEmail);
    }

    /**
     * Who performed the deployment.
     * 
     */
    @Import(name="deployer")
    private @Nullable Output deployer;

    /**
     * @return Who performed the deployment.
     * 
     */
    public Optional> deployer() {
        return Optional.ofNullable(this.deployer);
    }

    /**
     * Details on deployment.
     * 
     */
    @Import(name="details")
    private @Nullable Output details;

    /**
     * @return Details on deployment.
     * 
     */
    public Optional> details() {
        return Optional.ofNullable(this.details);
    }

    /**
     * End time.
     * 
     */
    @Import(name="endTime")
    private @Nullable Output endTime;

    /**
     * @return End time.
     * 
     */
    public Optional> endTime() {
        return Optional.ofNullable(this.endTime);
    }

    /**
     * ID of an existing deployment.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return ID of an existing deployment.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

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

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

    /**
     * Details about deployment status.
     * 
     */
    @Import(name="message")
    private @Nullable Output message;

    /**
     * @return Details about deployment status.
     * 
     */
    public Optional> message() {
        return Optional.ofNullable(this.message);
    }

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

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

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

    /**
     * Start time.
     * 
     */
    @Import(name="startTime")
    private @Nullable Output startTime;

    /**
     * @return Start time.
     * 
     */
    public Optional> startTime() {
        return Optional.ofNullable(this.startTime);
    }

    /**
     * Deployment status.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return Deployment status.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    private WebAppDeploymentArgs() {}

    private WebAppDeploymentArgs(WebAppDeploymentArgs $) {
        this.active = $.active;
        this.author = $.author;
        this.authorEmail = $.authorEmail;
        this.deployer = $.deployer;
        this.details = $.details;
        this.endTime = $.endTime;
        this.id = $.id;
        this.kind = $.kind;
        this.message = $.message;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.startTime = $.startTime;
        this.status = $.status;
    }

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

    public static final class Builder {
        private WebAppDeploymentArgs $;

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

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

        /**
         * @param active True if deployment is currently active, false if completed and null if not started.
         * 
         * @return builder
         * 
         */
        public Builder active(@Nullable Output active) {
            $.active = active;
            return this;
        }

        /**
         * @param active True if deployment is currently active, false if completed and null if not started.
         * 
         * @return builder
         * 
         */
        public Builder active(Boolean active) {
            return active(Output.of(active));
        }

        /**
         * @param author Who authored the deployment.
         * 
         * @return builder
         * 
         */
        public Builder author(@Nullable Output author) {
            $.author = author;
            return this;
        }

        /**
         * @param author Who authored the deployment.
         * 
         * @return builder
         * 
         */
        public Builder author(String author) {
            return author(Output.of(author));
        }

        /**
         * @param authorEmail Author email.
         * 
         * @return builder
         * 
         */
        public Builder authorEmail(@Nullable Output authorEmail) {
            $.authorEmail = authorEmail;
            return this;
        }

        /**
         * @param authorEmail Author email.
         * 
         * @return builder
         * 
         */
        public Builder authorEmail(String authorEmail) {
            return authorEmail(Output.of(authorEmail));
        }

        /**
         * @param deployer Who performed the deployment.
         * 
         * @return builder
         * 
         */
        public Builder deployer(@Nullable Output deployer) {
            $.deployer = deployer;
            return this;
        }

        /**
         * @param deployer Who performed the deployment.
         * 
         * @return builder
         * 
         */
        public Builder deployer(String deployer) {
            return deployer(Output.of(deployer));
        }

        /**
         * @param details Details on deployment.
         * 
         * @return builder
         * 
         */
        public Builder details(@Nullable Output details) {
            $.details = details;
            return this;
        }

        /**
         * @param details Details on deployment.
         * 
         * @return builder
         * 
         */
        public Builder details(String details) {
            return details(Output.of(details));
        }

        /**
         * @param endTime End time.
         * 
         * @return builder
         * 
         */
        public Builder endTime(@Nullable Output endTime) {
            $.endTime = endTime;
            return this;
        }

        /**
         * @param endTime End time.
         * 
         * @return builder
         * 
         */
        public Builder endTime(String endTime) {
            return endTime(Output.of(endTime));
        }

        /**
         * @param id ID of an existing deployment.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id ID of an existing deployment.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @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 message Details about deployment status.
         * 
         * @return builder
         * 
         */
        public Builder message(@Nullable Output message) {
            $.message = message;
            return this;
        }

        /**
         * @param message Details about deployment status.
         * 
         * @return builder
         * 
         */
        public Builder message(String message) {
            return message(Output.of(message));
        }

        /**
         * @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 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 startTime Start time.
         * 
         * @return builder
         * 
         */
        public Builder startTime(@Nullable Output startTime) {
            $.startTime = startTime;
            return this;
        }

        /**
         * @param startTime Start time.
         * 
         * @return builder
         * 
         */
        public Builder startTime(String startTime) {
            return startTime(Output.of(startTime));
        }

        /**
         * @param status Deployment status.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Deployment status.
         * 
         * @return builder
         * 
         */
        public Builder status(Integer status) {
            return status(Output.of(status));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy