sdk/java/src/main/java/com/pulumi/ovh/Dedicated/NasHAPartitionArgs.java
// *** 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.ovh.Dedicated;

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


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

    public static final NasHAPartitionArgs Empty = new NasHAPartitionArgs();

    /**
     * A brief description of the partition
     * 
     */
    @Import(name="description")
    private @Nullable Output<String> description;

    /**
     * @return A brief description of the partition
     * 
     */
    public Optional<Output<String>> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * name of the partition
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return name of the partition
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * one of &#34;NFS&#34;, &#34;CIFS&#34; or &#34;NFS_CIFS&#34;
     * 
     */
    @Import(name="protocol", required=true)
    private Output<String> protocol;

    /**
     * @return one of &#34;NFS&#34;, &#34;CIFS&#34; or &#34;NFS_CIFS&#34;
     * 
     */
    public Output<String> protocol() {
        return this.protocol;
    }

    /**
     * The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
     * 
     */
    @Import(name="serviceName", required=true)
    private Output<String> serviceName;

    /**
     * @return The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
     * 
     */
    public Output<String> serviceName() {
        return this.serviceName;
    }

    /**
     * size of the partition in GB
     * 
     */
    @Import(name="size", required=true)
    private Output<Integer> size;

    /**
     * @return size of the partition in GB
     * 
     */
    public Output<Integer> size() {
        return this.size;
    }

    private NasHAPartitionArgs() {}

    private NasHAPartitionArgs(NasHAPartitionArgs $) {
        this.description = $.description;
        this.name = $.name;
        this.protocol = $.protocol;
        this.serviceName = $.serviceName;
        this.size = $.size;
    }

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

    public static final class Builder {
        private NasHAPartitionArgs $;

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

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

        /**
         * @param description A brief description of the partition
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output<String> description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A brief description of the partition
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name name of the partition
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param protocol one of &#34;NFS&#34;, &#34;CIFS&#34; or &#34;NFS_CIFS&#34;
         * 
         * @return builder
         * 
         */
        public Builder protocol(Output<String> protocol) {
            $.protocol = protocol;
            return this;
        }

        /**
         * @param protocol one of &#34;NFS&#34;, &#34;CIFS&#34; or &#34;NFS_CIFS&#34;
         * 
         * @return builder
         * 
         */
        public Builder protocol(String protocol) {
            return protocol(Output.of(protocol));
        }

        /**
         * @param serviceName The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output<String> serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param size size of the partition in GB
         * 
         * @return builder
         * 
         */
        public Builder size(Output<Integer> size) {
            $.size = size;
            return this;
        }

        /**
         * @param size size of the partition in GB
         * 
         * @return builder
         * 
         */
        public Builder size(Integer size) {
            return size(Output.of(size));
        }

        public NasHAPartitionArgs build() {
            $.protocol = Objects.requireNonNull($.protocol, "expected parameter 'protocol' to be non-null");
            $.serviceName = Objects.requireNonNull($.serviceName, "expected parameter 'serviceName' to be non-null");
            $.size = Objects.requireNonNull($.size, "expected parameter 'size' to be non-null");
            return $;
        }
    }

}
