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

com.pulumi.azurenative.netapp.BackupArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.netapp;

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


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

    public static final BackupArgs Empty = new BackupArgs();

    /**
     * The name of the NetApp account
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The name of the NetApp account
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * The name of the backup
     * 
     */
    @Import(name="backupName")
    private @Nullable Output backupName;

    /**
     * @return The name of the backup
     * 
     */
    public Optional> backupName() {
        return Optional.ofNullable(this.backupName);
    }

    /**
     * Label for backup
     * 
     */
    @Import(name="label")
    private @Nullable Output label;

    /**
     * @return Label for backup
     * 
     */
    public Optional> label() {
        return Optional.ofNullable(this.label);
    }

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

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

    /**
     * The name of the capacity pool
     * 
     */
    @Import(name="poolName", required=true)
    private Output poolName;

    /**
     * @return The name of the capacity pool
     * 
     */
    public Output poolName() {
        return this.poolName;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups
     * 
     */
    @Import(name="useExistingSnapshot")
    private @Nullable Output useExistingSnapshot;

    /**
     * @return Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups
     * 
     */
    public Optional> useExistingSnapshot() {
        return Optional.ofNullable(this.useExistingSnapshot);
    }

    /**
     * The name of the volume
     * 
     */
    @Import(name="volumeName", required=true)
    private Output volumeName;

    /**
     * @return The name of the volume
     * 
     */
    public Output volumeName() {
        return this.volumeName;
    }

    private BackupArgs() {}

    private BackupArgs(BackupArgs $) {
        this.accountName = $.accountName;
        this.backupName = $.backupName;
        this.label = $.label;
        this.location = $.location;
        this.poolName = $.poolName;
        this.resourceGroupName = $.resourceGroupName;
        this.useExistingSnapshot = $.useExistingSnapshot;
        this.volumeName = $.volumeName;
    }

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

    public static final class Builder {
        private BackupArgs $;

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

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

        /**
         * @param accountName The name of the NetApp account
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName The name of the NetApp account
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param backupName The name of the backup
         * 
         * @return builder
         * 
         */
        public Builder backupName(@Nullable Output backupName) {
            $.backupName = backupName;
            return this;
        }

        /**
         * @param backupName The name of the backup
         * 
         * @return builder
         * 
         */
        public Builder backupName(String backupName) {
            return backupName(Output.of(backupName));
        }

        /**
         * @param label Label for backup
         * 
         * @return builder
         * 
         */
        public Builder label(@Nullable Output label) {
            $.label = label;
            return this;
        }

        /**
         * @param label Label for backup
         * 
         * @return builder
         * 
         */
        public Builder label(String label) {
            return label(Output.of(label));
        }

        /**
         * @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 poolName The name of the capacity pool
         * 
         * @return builder
         * 
         */
        public Builder poolName(Output poolName) {
            $.poolName = poolName;
            return this;
        }

        /**
         * @param poolName The name of the capacity pool
         * 
         * @return builder
         * 
         */
        public Builder poolName(String poolName) {
            return poolName(Output.of(poolName));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param useExistingSnapshot Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups
         * 
         * @return builder
         * 
         */
        public Builder useExistingSnapshot(@Nullable Output useExistingSnapshot) {
            $.useExistingSnapshot = useExistingSnapshot;
            return this;
        }

        /**
         * @param useExistingSnapshot Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups
         * 
         * @return builder
         * 
         */
        public Builder useExistingSnapshot(Boolean useExistingSnapshot) {
            return useExistingSnapshot(Output.of(useExistingSnapshot));
        }

        /**
         * @param volumeName The name of the volume
         * 
         * @return builder
         * 
         */
        public Builder volumeName(Output volumeName) {
            $.volumeName = volumeName;
            return this;
        }

        /**
         * @param volumeName The name of the volume
         * 
         * @return builder
         * 
         */
        public Builder volumeName(String volumeName) {
            return volumeName(Output.of(volumeName));
        }

        public BackupArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("BackupArgs", "accountName");
            }
            if ($.poolName == null) {
                throw new MissingRequiredPropertyException("BackupArgs", "poolName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("BackupArgs", "resourceGroupName");
            }
            $.useExistingSnapshot = Codegen.booleanProp("useExistingSnapshot").output().arg($.useExistingSnapshot).def(false).getNullable();
            if ($.volumeName == null) {
                throw new MissingRequiredPropertyException("BackupArgs", "volumeName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy