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

com.pulumi.azurenative.dataprotection.outputs.ResourceGuardResponse 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.dataprotection.outputs;

import com.pulumi.azurenative.dataprotection.outputs.ResourceGuardOperationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class ResourceGuardResponse {
    /**
     * @return This flag indicates whether auto approval is allowed or not.
     * 
     */
    private Boolean allowAutoApprovals;
    /**
     * @return Description about the pre-req steps to perform all the critical operations.
     * 
     */
    private String description;
    /**
     * @return Provisioning state of the BackupVault resource
     * 
     */
    private String provisioningState;
    /**
     * @return {readonly} List of operation details those are protected by the ResourceGuard resource
     * 
     */
    private List resourceGuardOperations;
    /**
     * @return List of critical operations which are not protected by this resourceGuard
     * 
     */
    private @Nullable List vaultCriticalOperationExclusionList;

    private ResourceGuardResponse() {}
    /**
     * @return This flag indicates whether auto approval is allowed or not.
     * 
     */
    public Boolean allowAutoApprovals() {
        return this.allowAutoApprovals;
    }
    /**
     * @return Description about the pre-req steps to perform all the critical operations.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return Provisioning state of the BackupVault resource
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return {readonly} List of operation details those are protected by the ResourceGuard resource
     * 
     */
    public List resourceGuardOperations() {
        return this.resourceGuardOperations;
    }
    /**
     * @return List of critical operations which are not protected by this resourceGuard
     * 
     */
    public List vaultCriticalOperationExclusionList() {
        return this.vaultCriticalOperationExclusionList == null ? List.of() : this.vaultCriticalOperationExclusionList;
    }

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

    public static Builder builder(ResourceGuardResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean allowAutoApprovals;
        private String description;
        private String provisioningState;
        private List resourceGuardOperations;
        private @Nullable List vaultCriticalOperationExclusionList;
        public Builder() {}
        public Builder(ResourceGuardResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowAutoApprovals = defaults.allowAutoApprovals;
    	      this.description = defaults.description;
    	      this.provisioningState = defaults.provisioningState;
    	      this.resourceGuardOperations = defaults.resourceGuardOperations;
    	      this.vaultCriticalOperationExclusionList = defaults.vaultCriticalOperationExclusionList;
        }

        @CustomType.Setter
        public Builder allowAutoApprovals(Boolean allowAutoApprovals) {
            if (allowAutoApprovals == null) {
              throw new MissingRequiredPropertyException("ResourceGuardResponse", "allowAutoApprovals");
            }
            this.allowAutoApprovals = allowAutoApprovals;
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("ResourceGuardResponse", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("ResourceGuardResponse", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder resourceGuardOperations(List resourceGuardOperations) {
            if (resourceGuardOperations == null) {
              throw new MissingRequiredPropertyException("ResourceGuardResponse", "resourceGuardOperations");
            }
            this.resourceGuardOperations = resourceGuardOperations;
            return this;
        }
        public Builder resourceGuardOperations(ResourceGuardOperationResponse... resourceGuardOperations) {
            return resourceGuardOperations(List.of(resourceGuardOperations));
        }
        @CustomType.Setter
        public Builder vaultCriticalOperationExclusionList(@Nullable List vaultCriticalOperationExclusionList) {

            this.vaultCriticalOperationExclusionList = vaultCriticalOperationExclusionList;
            return this;
        }
        public Builder vaultCriticalOperationExclusionList(String... vaultCriticalOperationExclusionList) {
            return vaultCriticalOperationExclusionList(List.of(vaultCriticalOperationExclusionList));
        }
        public ResourceGuardResponse build() {
            final var _resultValue = new ResourceGuardResponse();
            _resultValue.allowAutoApprovals = allowAutoApprovals;
            _resultValue.description = description;
            _resultValue.provisioningState = provisioningState;
            _resultValue.resourceGuardOperations = resourceGuardOperations;
            _resultValue.vaultCriticalOperationExclusionList = vaultCriticalOperationExclusionList;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy