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

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

// *** 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.BuildResultUserSourceInfoArgs;
import com.pulumi.azurenative.appplatform.inputs.CustomContainerUserSourceInfoArgs;
import com.pulumi.azurenative.appplatform.inputs.DeploymentSettingsArgs;
import com.pulumi.azurenative.appplatform.inputs.JarUploadedUserSourceInfoArgs;
import com.pulumi.azurenative.appplatform.inputs.NetCoreZipUploadedUserSourceInfoArgs;
import com.pulumi.azurenative.appplatform.inputs.SourceUploadedUserSourceInfoArgs;
import com.pulumi.azurenative.appplatform.inputs.UploadedUserSourceInfoArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Object;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Deployment resource properties payload
 * 
 */
public final class DeploymentResourcePropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeploymentResourcePropertiesArgs Empty = new DeploymentResourcePropertiesArgs();

    /**
     * Indicates whether the Deployment is active
     * 
     */
    @Import(name="active")
    private @Nullable Output active;

    /**
     * @return Indicates whether the Deployment is active
     * 
     */
    public Optional> active() {
        return Optional.ofNullable(this.active);
    }

    /**
     * Deployment settings of the Deployment
     * 
     */
    @Import(name="deploymentSettings")
    private @Nullable Output deploymentSettings;

    /**
     * @return Deployment settings of the Deployment
     * 
     */
    public Optional> deploymentSettings() {
        return Optional.ofNullable(this.deploymentSettings);
    }

    /**
     * Uploaded source information of the deployment.
     * 
     */
    @Import(name="source")
    private @Nullable Output source;

    /**
     * @return Uploaded source information of the deployment.
     * 
     */
    public Optional> source() {
        return Optional.ofNullable(this.source);
    }

    private DeploymentResourcePropertiesArgs() {}

    private DeploymentResourcePropertiesArgs(DeploymentResourcePropertiesArgs $) {
        this.active = $.active;
        this.deploymentSettings = $.deploymentSettings;
        this.source = $.source;
    }

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

    public static final class Builder {
        private DeploymentResourcePropertiesArgs $;

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

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

        /**
         * @param active Indicates whether the Deployment is active
         * 
         * @return builder
         * 
         */
        public Builder active(@Nullable Output active) {
            $.active = active;
            return this;
        }

        /**
         * @param active Indicates whether the Deployment is active
         * 
         * @return builder
         * 
         */
        public Builder active(Boolean active) {
            return active(Output.of(active));
        }

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

        /**
         * @param deploymentSettings Deployment settings of the Deployment
         * 
         * @return builder
         * 
         */
        public Builder deploymentSettings(DeploymentSettingsArgs deploymentSettings) {
            return deploymentSettings(Output.of(deploymentSettings));
        }

        /**
         * @param source Uploaded source information of the deployment.
         * 
         * @return builder
         * 
         */
        public Builder source(@Nullable Output source) {
            $.source = source;
            return this;
        }

        /**
         * @param source Uploaded source information of the deployment.
         * 
         * @return builder
         * 
         */
        public Builder source(Object source) {
            return source(Output.of(source));
        }

        public DeploymentResourcePropertiesArgs build() {
            return $;
        }
    }

}