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

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

There is a newer version: 2.78.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.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SubvolumeArgs Empty = new SubvolumeArgs();

    /**
     * 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;
    }

    /**
     * parent path to the subvolume
     * 
     */
    @Import(name="parentPath")
    private @Nullable Output parentPath;

    /**
     * @return parent path to the subvolume
     * 
     */
    public Optional> parentPath() {
        return Optional.ofNullable(this.parentPath);
    }

    /**
     * Path to the subvolume
     * 
     */
    @Import(name="path")
    private @Nullable Output path;

    /**
     * @return Path to the subvolume
     * 
     */
    public Optional> path() {
        return Optional.ofNullable(this.path);
    }

    /**
     * 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;
    }

    /**
     * Truncate subvolume to the provided size in bytes
     * 
     */
    @Import(name="size")
    private @Nullable Output size;

    /**
     * @return Truncate subvolume to the provided size in bytes
     * 
     */
    public Optional> size() {
        return Optional.ofNullable(this.size);
    }

    /**
     * The name of the subvolume.
     * 
     */
    @Import(name="subvolumeName")
    private @Nullable Output subvolumeName;

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

    /**
     * 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 SubvolumeArgs() {}

    private SubvolumeArgs(SubvolumeArgs $) {
        this.accountName = $.accountName;
        this.parentPath = $.parentPath;
        this.path = $.path;
        this.poolName = $.poolName;
        this.resourceGroupName = $.resourceGroupName;
        this.size = $.size;
        this.subvolumeName = $.subvolumeName;
        this.volumeName = $.volumeName;
    }

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

    public static final class Builder {
        private SubvolumeArgs $;

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

        public Builder(SubvolumeArgs defaults) {
            $ = new SubvolumeArgs(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 parentPath parent path to the subvolume
         * 
         * @return builder
         * 
         */
        public Builder parentPath(@Nullable Output parentPath) {
            $.parentPath = parentPath;
            return this;
        }

        /**
         * @param parentPath parent path to the subvolume
         * 
         * @return builder
         * 
         */
        public Builder parentPath(String parentPath) {
            return parentPath(Output.of(parentPath));
        }

        /**
         * @param path Path to the subvolume
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path Path to the subvolume
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @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 size Truncate subvolume to the provided size in bytes
         * 
         * @return builder
         * 
         */
        public Builder size(@Nullable Output size) {
            $.size = size;
            return this;
        }

        /**
         * @param size Truncate subvolume to the provided size in bytes
         * 
         * @return builder
         * 
         */
        public Builder size(Double size) {
            return size(Output.of(size));
        }

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

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

        /**
         * @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 SubvolumeArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("SubvolumeArgs", "accountName");
            }
            if ($.poolName == null) {
                throw new MissingRequiredPropertyException("SubvolumeArgs", "poolName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SubvolumeArgs", "resourceGroupName");
            }
            if ($.volumeName == null) {
                throw new MissingRequiredPropertyException("SubvolumeArgs", "volumeName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy