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

com.pulumi.azure.siterecovery.ProtectionContainerArgs 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.azure.siterecovery;

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


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

    public static final ProtectionContainerArgs Empty = new ProtectionContainerArgs();

    /**
     * The name of the protection container. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the protection container. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Name of fabric that should contain this protection container. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="recoveryFabricName", required=true)
    private Output recoveryFabricName;

    /**
     * @return Name of fabric that should contain this protection container. Changing this forces a new resource to be created.
     * 
     */
    public Output recoveryFabricName() {
        return this.recoveryFabricName;
    }

    /**
     * The name of the vault that should be updated. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="recoveryVaultName", required=true)
    private Output recoveryVaultName;

    /**
     * @return The name of the vault that should be updated. Changing this forces a new resource to be created.
     * 
     */
    public Output recoveryVaultName() {
        return this.recoveryVaultName;
    }

    /**
     * Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private ProtectionContainerArgs() {}

    private ProtectionContainerArgs(ProtectionContainerArgs $) {
        this.name = $.name;
        this.recoveryFabricName = $.recoveryFabricName;
        this.recoveryVaultName = $.recoveryVaultName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private ProtectionContainerArgs $;

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

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

        /**
         * @param name The name of the protection container. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the protection container. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param recoveryFabricName Name of fabric that should contain this protection container. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder recoveryFabricName(Output recoveryFabricName) {
            $.recoveryFabricName = recoveryFabricName;
            return this;
        }

        /**
         * @param recoveryFabricName Name of fabric that should contain this protection container. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder recoveryFabricName(String recoveryFabricName) {
            return recoveryFabricName(Output.of(recoveryFabricName));
        }

        /**
         * @param recoveryVaultName The name of the vault that should be updated. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder recoveryVaultName(Output recoveryVaultName) {
            $.recoveryVaultName = recoveryVaultName;
            return this;
        }

        /**
         * @param recoveryVaultName The name of the vault that should be updated. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder recoveryVaultName(String recoveryVaultName) {
            return recoveryVaultName(Output.of(recoveryVaultName));
        }

        /**
         * @param resourceGroupName Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public ProtectionContainerArgs build() {
            if ($.recoveryFabricName == null) {
                throw new MissingRequiredPropertyException("ProtectionContainerArgs", "recoveryFabricName");
            }
            if ($.recoveryVaultName == null) {
                throw new MissingRequiredPropertyException("ProtectionContainerArgs", "recoveryVaultName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ProtectionContainerArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy