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

com.pulumi.azurenative.securityinsights.inputs.DeploymentArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.securityinsights.enums.DeploymentResult;
import com.pulumi.azurenative.securityinsights.enums.DeploymentState;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Description about a deployment.
 * 
 */
public final class DeploymentArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeploymentArgs Empty = new DeploymentArgs();

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

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

    /**
     * Url to access repository action logs.
     * 
     */
    @Import(name="deploymentLogsUrl")
    private @Nullable Output deploymentLogsUrl;

    /**
     * @return Url to access repository action logs.
     * 
     */
    public Optional> deploymentLogsUrl() {
        return Optional.ofNullable(this.deploymentLogsUrl);
    }

    /**
     * The outcome of the deployment.
     * 
     */
    @Import(name="deploymentResult")
    private @Nullable Output> deploymentResult;

    /**
     * @return The outcome of the deployment.
     * 
     */
    public Optional>> deploymentResult() {
        return Optional.ofNullable(this.deploymentResult);
    }

    /**
     * Current status of the deployment.
     * 
     */
    @Import(name="deploymentState")
    private @Nullable Output> deploymentState;

    /**
     * @return Current status of the deployment.
     * 
     */
    public Optional>> deploymentState() {
        return Optional.ofNullable(this.deploymentState);
    }

    /**
     * The time when the deployment finished.
     * 
     */
    @Import(name="deploymentTime")
    private @Nullable Output deploymentTime;

    /**
     * @return The time when the deployment finished.
     * 
     */
    public Optional> deploymentTime() {
        return Optional.ofNullable(this.deploymentTime);
    }

    private DeploymentArgs() {}

    private DeploymentArgs(DeploymentArgs $) {
        this.deploymentId = $.deploymentId;
        this.deploymentLogsUrl = $.deploymentLogsUrl;
        this.deploymentResult = $.deploymentResult;
        this.deploymentState = $.deploymentState;
        this.deploymentTime = $.deploymentTime;
    }

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

    public static final class Builder {
        private DeploymentArgs $;

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

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

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

        /**
         * @param deploymentId Deployment identifier.
         * 
         * @return builder
         * 
         */
        public Builder deploymentId(String deploymentId) {
            return deploymentId(Output.of(deploymentId));
        }

        /**
         * @param deploymentLogsUrl Url to access repository action logs.
         * 
         * @return builder
         * 
         */
        public Builder deploymentLogsUrl(@Nullable Output deploymentLogsUrl) {
            $.deploymentLogsUrl = deploymentLogsUrl;
            return this;
        }

        /**
         * @param deploymentLogsUrl Url to access repository action logs.
         * 
         * @return builder
         * 
         */
        public Builder deploymentLogsUrl(String deploymentLogsUrl) {
            return deploymentLogsUrl(Output.of(deploymentLogsUrl));
        }

        /**
         * @param deploymentResult The outcome of the deployment.
         * 
         * @return builder
         * 
         */
        public Builder deploymentResult(@Nullable Output> deploymentResult) {
            $.deploymentResult = deploymentResult;
            return this;
        }

        /**
         * @param deploymentResult The outcome of the deployment.
         * 
         * @return builder
         * 
         */
        public Builder deploymentResult(Either deploymentResult) {
            return deploymentResult(Output.of(deploymentResult));
        }

        /**
         * @param deploymentResult The outcome of the deployment.
         * 
         * @return builder
         * 
         */
        public Builder deploymentResult(String deploymentResult) {
            return deploymentResult(Either.ofLeft(deploymentResult));
        }

        /**
         * @param deploymentResult The outcome of the deployment.
         * 
         * @return builder
         * 
         */
        public Builder deploymentResult(DeploymentResult deploymentResult) {
            return deploymentResult(Either.ofRight(deploymentResult));
        }

        /**
         * @param deploymentState Current status of the deployment.
         * 
         * @return builder
         * 
         */
        public Builder deploymentState(@Nullable Output> deploymentState) {
            $.deploymentState = deploymentState;
            return this;
        }

        /**
         * @param deploymentState Current status of the deployment.
         * 
         * @return builder
         * 
         */
        public Builder deploymentState(Either deploymentState) {
            return deploymentState(Output.of(deploymentState));
        }

        /**
         * @param deploymentState Current status of the deployment.
         * 
         * @return builder
         * 
         */
        public Builder deploymentState(String deploymentState) {
            return deploymentState(Either.ofLeft(deploymentState));
        }

        /**
         * @param deploymentState Current status of the deployment.
         * 
         * @return builder
         * 
         */
        public Builder deploymentState(DeploymentState deploymentState) {
            return deploymentState(Either.ofRight(deploymentState));
        }

        /**
         * @param deploymentTime The time when the deployment finished.
         * 
         * @return builder
         * 
         */
        public Builder deploymentTime(@Nullable Output deploymentTime) {
            $.deploymentTime = deploymentTime;
            return this;
        }

        /**
         * @param deploymentTime The time when the deployment finished.
         * 
         * @return builder
         * 
         */
        public Builder deploymentTime(String deploymentTime) {
            return deploymentTime(Output.of(deploymentTime));
        }

        public DeploymentArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy