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

com.pulumi.azurenative.web.outputs.GetWebAppDeploymentSlotResult Maven / Gradle / Ivy

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

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class GetWebAppDeploymentSlotResult {
    /**
     * @return True if deployment is currently active, false if completed and null if not started.
     * 
     */
    private @Nullable Boolean active;
    /**
     * @return Who authored the deployment.
     * 
     */
    private @Nullable String author;
    /**
     * @return Author email.
     * 
     */
    private @Nullable String authorEmail;
    /**
     * @return Who performed the deployment.
     * 
     */
    private @Nullable String deployer;
    /**
     * @return Details on deployment.
     * 
     */
    private @Nullable String details;
    /**
     * @return End time.
     * 
     */
    private @Nullable String endTime;
    /**
     * @return Resource Id.
     * 
     */
    private String id;
    /**
     * @return Kind of resource.
     * 
     */
    private @Nullable String kind;
    /**
     * @return Details about deployment status.
     * 
     */
    private @Nullable String message;
    /**
     * @return Resource Name.
     * 
     */
    private String name;
    /**
     * @return Start time.
     * 
     */
    private @Nullable String startTime;
    /**
     * @return Deployment status.
     * 
     */
    private @Nullable Integer status;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetWebAppDeploymentSlotResult() {}
    /**
     * @return True if deployment is currently active, false if completed and null if not started.
     * 
     */
    public Optional active() {
        return Optional.ofNullable(this.active);
    }
    /**
     * @return Who authored the deployment.
     * 
     */
    public Optional author() {
        return Optional.ofNullable(this.author);
    }
    /**
     * @return Author email.
     * 
     */
    public Optional authorEmail() {
        return Optional.ofNullable(this.authorEmail);
    }
    /**
     * @return Who performed the deployment.
     * 
     */
    public Optional deployer() {
        return Optional.ofNullable(this.deployer);
    }
    /**
     * @return Details on deployment.
     * 
     */
    public Optional details() {
        return Optional.ofNullable(this.details);
    }
    /**
     * @return End time.
     * 
     */
    public Optional endTime() {
        return Optional.ofNullable(this.endTime);
    }
    /**
     * @return Resource Id.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Kind of resource.
     * 
     */
    public Optional kind() {
        return Optional.ofNullable(this.kind);
    }
    /**
     * @return Details about deployment status.
     * 
     */
    public Optional message() {
        return Optional.ofNullable(this.message);
    }
    /**
     * @return Resource Name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Start time.
     * 
     */
    public Optional startTime() {
        return Optional.ofNullable(this.startTime);
    }
    /**
     * @return Deployment status.
     * 
     */
    public Optional status() {
        return Optional.ofNullable(this.status);
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetWebAppDeploymentSlotResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean active;
        private @Nullable String author;
        private @Nullable String authorEmail;
        private @Nullable String deployer;
        private @Nullable String details;
        private @Nullable String endTime;
        private String id;
        private @Nullable String kind;
        private @Nullable String message;
        private String name;
        private @Nullable String startTime;
        private @Nullable Integer status;
        private String type;
        public Builder() {}
        public Builder(GetWebAppDeploymentSlotResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.active = defaults.active;
    	      this.author = defaults.author;
    	      this.authorEmail = defaults.authorEmail;
    	      this.deployer = defaults.deployer;
    	      this.details = defaults.details;
    	      this.endTime = defaults.endTime;
    	      this.id = defaults.id;
    	      this.kind = defaults.kind;
    	      this.message = defaults.message;
    	      this.name = defaults.name;
    	      this.startTime = defaults.startTime;
    	      this.status = defaults.status;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder active(@Nullable Boolean active) {

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

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

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

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

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

            this.endTime = endTime;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetWebAppDeploymentSlotResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder kind(@Nullable String kind) {

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

            this.message = message;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetWebAppDeploymentSlotResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder startTime(@Nullable String startTime) {

            this.startTime = startTime;
            return this;
        }
        @CustomType.Setter
        public Builder status(@Nullable Integer status) {

            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetWebAppDeploymentSlotResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetWebAppDeploymentSlotResult build() {
            final var _resultValue = new GetWebAppDeploymentSlotResult();
            _resultValue.active = active;
            _resultValue.author = author;
            _resultValue.authorEmail = authorEmail;
            _resultValue.deployer = deployer;
            _resultValue.details = details;
            _resultValue.endTime = endTime;
            _resultValue.id = id;
            _resultValue.kind = kind;
            _resultValue.message = message;
            _resultValue.name = name;
            _resultValue.startTime = startTime;
            _resultValue.status = status;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy