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

com.pulumi.azure.netapp.inputs.GetVolumeArgs 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.netapp.inputs;

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 GetVolumeArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetVolumeArgs Empty = new GetVolumeArgs();

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

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

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

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

    /**
     * The name of the NetApp pool where the NetApp volume exists.
     * 
     */
    @Import(name="poolName", required=true)
    private Output poolName;

    /**
     * @return The name of the NetApp pool where the NetApp volume exists.
     * 
     */
    public Output poolName() {
        return this.poolName;
    }

    /**
     * The Name of the Resource Group where the NetApp Volume exists.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The Name of the Resource Group where the NetApp Volume exists.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Volume security style
     * 
     */
    @Import(name="securityStyle")
    private @Nullable Output securityStyle;

    /**
     * @return Volume security style
     * 
     */
    public Optional> securityStyle() {
        return Optional.ofNullable(this.securityStyle);
    }

    private GetVolumeArgs() {}

    private GetVolumeArgs(GetVolumeArgs $) {
        this.accountName = $.accountName;
        this.name = $.name;
        this.poolName = $.poolName;
        this.resourceGroupName = $.resourceGroupName;
        this.securityStyle = $.securityStyle;
    }

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

    public static final class Builder {
        private GetVolumeArgs $;

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

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

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

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

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

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

        /**
         * @param poolName The name of the NetApp pool where the NetApp volume exists.
         * 
         * @return builder
         * 
         */
        public Builder poolName(Output poolName) {
            $.poolName = poolName;
            return this;
        }

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

        /**
         * @param resourceGroupName The Name of the Resource Group where the NetApp Volume exists.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The Name of the Resource Group where the NetApp Volume exists.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param securityStyle Volume security style
         * 
         * @return builder
         * 
         */
        public Builder securityStyle(@Nullable Output securityStyle) {
            $.securityStyle = securityStyle;
            return this;
        }

        /**
         * @param securityStyle Volume security style
         * 
         * @return builder
         * 
         */
        public Builder securityStyle(String securityStyle) {
            return securityStyle(Output.of(securityStyle));
        }

        public GetVolumeArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("GetVolumeArgs", "accountName");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("GetVolumeArgs", "name");
            }
            if ($.poolName == null) {
                throw new MissingRequiredPropertyException("GetVolumeArgs", "poolName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetVolumeArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy