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

com.pulumi.azurenative.recoveryservices.ProtectionIntentArgs 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.recoveryservices;

import com.pulumi.azurenative.recoveryservices.inputs.AzureRecoveryServiceVaultProtectionIntentArgs;
import com.pulumi.azurenative.recoveryservices.inputs.AzureResourceProtectionIntentArgs;
import com.pulumi.azurenative.recoveryservices.inputs.AzureWorkloadAutoProtectionIntentArgs;
import com.pulumi.azurenative.recoveryservices.inputs.AzureWorkloadContainerAutoProtectionIntentArgs;
import com.pulumi.azurenative.recoveryservices.inputs.AzureWorkloadSQLAutoProtectionIntentArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ProtectionIntentArgs extends com.pulumi.resources.ResourceArgs {

    public static final ProtectionIntentArgs Empty = new ProtectionIntentArgs();

    /**
     * Optional ETag.
     * 
     */
    @Import(name="eTag")
    private @Nullable Output eTag;

    /**
     * @return Optional ETag.
     * 
     */
    public Optional> eTag() {
        return Optional.ofNullable(this.eTag);
    }

    /**
     * Fabric name associated with the backup item.
     * 
     */
    @Import(name="fabricName", required=true)
    private Output fabricName;

    /**
     * @return Fabric name associated with the backup item.
     * 
     */
    public Output fabricName() {
        return this.fabricName;
    }

    /**
     * Intent object name.
     * 
     */
    @Import(name="intentObjectName")
    private @Nullable Output intentObjectName;

    /**
     * @return Intent object name.
     * 
     */
    public Optional> intentObjectName() {
        return Optional.ofNullable(this.intentObjectName);
    }

    /**
     * Resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * ProtectionIntentResource properties
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return ProtectionIntentResource properties
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * The name of the resource group where the recovery services vault is present.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group where the recovery services vault is present.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The name of the recovery services vault.
     * 
     */
    @Import(name="vaultName", required=true)
    private Output vaultName;

    /**
     * @return The name of the recovery services vault.
     * 
     */
    public Output vaultName() {
        return this.vaultName;
    }

    private ProtectionIntentArgs() {}

    private ProtectionIntentArgs(ProtectionIntentArgs $) {
        this.eTag = $.eTag;
        this.fabricName = $.fabricName;
        this.intentObjectName = $.intentObjectName;
        this.location = $.location;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.vaultName = $.vaultName;
    }

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

    public static final class Builder {
        private ProtectionIntentArgs $;

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

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

        /**
         * @param eTag Optional ETag.
         * 
         * @return builder
         * 
         */
        public Builder eTag(@Nullable Output eTag) {
            $.eTag = eTag;
            return this;
        }

        /**
         * @param eTag Optional ETag.
         * 
         * @return builder
         * 
         */
        public Builder eTag(String eTag) {
            return eTag(Output.of(eTag));
        }

        /**
         * @param fabricName Fabric name associated with the backup item.
         * 
         * @return builder
         * 
         */
        public Builder fabricName(Output fabricName) {
            $.fabricName = fabricName;
            return this;
        }

        /**
         * @param fabricName Fabric name associated with the backup item.
         * 
         * @return builder
         * 
         */
        public Builder fabricName(String fabricName) {
            return fabricName(Output.of(fabricName));
        }

        /**
         * @param intentObjectName Intent object name.
         * 
         * @return builder
         * 
         */
        public Builder intentObjectName(@Nullable Output intentObjectName) {
            $.intentObjectName = intentObjectName;
            return this;
        }

        /**
         * @param intentObjectName Intent object name.
         * 
         * @return builder
         * 
         */
        public Builder intentObjectName(String intentObjectName) {
            return intentObjectName(Output.of(intentObjectName));
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param properties ProtectionIntentResource properties
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties ProtectionIntentResource properties
         * 
         * @return builder
         * 
         */
        public Builder properties(Object properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param resourceGroupName The name of the resource group where the recovery services vault is present.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group where the recovery services vault is present.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param vaultName The name of the recovery services vault.
         * 
         * @return builder
         * 
         */
        public Builder vaultName(Output vaultName) {
            $.vaultName = vaultName;
            return this;
        }

        /**
         * @param vaultName The name of the recovery services vault.
         * 
         * @return builder
         * 
         */
        public Builder vaultName(String vaultName) {
            return vaultName(Output.of(vaultName));
        }

        public ProtectionIntentArgs build() {
            if ($.fabricName == null) {
                throw new MissingRequiredPropertyException("ProtectionIntentArgs", "fabricName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ProtectionIntentArgs", "resourceGroupName");
            }
            if ($.vaultName == null) {
                throw new MissingRequiredPropertyException("ProtectionIntentArgs", "vaultName");
            }
            return $;
        }
    }

}