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

com.pulumi.azurenative.resources.outputs.OnErrorDeploymentExtendedResponse Maven / Gradle / Ivy

The 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.resources.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class OnErrorDeploymentExtendedResponse {
    /**
     * @return The deployment to be used on error case.
     * 
     */
    private @Nullable String deploymentName;
    /**
     * @return The state of the provisioning for the on error deployment.
     * 
     */
    private String provisioningState;
    /**
     * @return The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment.
     * 
     */
    private @Nullable String type;

    private OnErrorDeploymentExtendedResponse() {}
    /**
     * @return The deployment to be used on error case.
     * 
     */
    public Optional deploymentName() {
        return Optional.ofNullable(this.deploymentName);
    }
    /**
     * @return The state of the provisioning for the on error deployment.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment.
     * 
     */
    public Optional type() {
        return Optional.ofNullable(this.type);
    }

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

    public static Builder builder(OnErrorDeploymentExtendedResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String deploymentName;
        private String provisioningState;
        private @Nullable String type;
        public Builder() {}
        public Builder(OnErrorDeploymentExtendedResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.deploymentName = defaults.deploymentName;
    	      this.provisioningState = defaults.provisioningState;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder deploymentName(@Nullable String deploymentName) {

            this.deploymentName = deploymentName;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("OnErrorDeploymentExtendedResponse", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder type(@Nullable String type) {

            this.type = type;
            return this;
        }
        public OnErrorDeploymentExtendedResponse build() {
            final var _resultValue = new OnErrorDeploymentExtendedResponse();
            _resultValue.deploymentName = deploymentName;
            _resultValue.provisioningState = provisioningState;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy