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

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


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

    public static final CephAclState Empty = new CephAclState();

    /**
     * IP family. `IPv4` or `IPv6`
     * 
     */
    @Import(name="family")
    private @Nullable Output<String> family;

    /**
     * @return IP family. `IPv4` or `IPv6`
     * 
     */
    public Optional<Output<String>> family() {
        return Optional.ofNullable(this.family);
    }

    /**
     * The network mask to apply
     * 
     */
    @Import(name="netmask")
    private @Nullable Output<String> netmask;

    /**
     * @return The network mask to apply
     * 
     */
    public Optional<Output<String>> netmask() {
        return Optional.ofNullable(this.netmask);
    }

    /**
     * The network IP to authorize
     * 
     */
    @Import(name="network")
    private @Nullable Output<String> network;

    /**
     * @return The network IP to authorize
     * 
     */
    public Optional<Output<String>> network() {
        return Optional.ofNullable(this.network);
    }

    /**
     * The internal name of your dedicated CEPH
     * 
     */
    @Import(name="serviceName")
    private @Nullable Output<String> serviceName;

    /**
     * @return The internal name of your dedicated CEPH
     * 
     */
    public Optional<Output<String>> serviceName() {
        return Optional.ofNullable(this.serviceName);
    }

    private CephAclState() {}

    private CephAclState(CephAclState $) {
        this.family = $.family;
        this.netmask = $.netmask;
        this.network = $.network;
        this.serviceName = $.serviceName;
    }

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

    public static final class Builder {
        private CephAclState $;

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

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

        /**
         * @param family IP family. `IPv4` or `IPv6`
         * 
         * @return builder
         * 
         */
        public Builder family(@Nullable Output<String> family) {
            $.family = family;
            return this;
        }

        /**
         * @param family IP family. `IPv4` or `IPv6`
         * 
         * @return builder
         * 
         */
        public Builder family(String family) {
            return family(Output.of(family));
        }

        /**
         * @param netmask The network mask to apply
         * 
         * @return builder
         * 
         */
        public Builder netmask(@Nullable Output<String> netmask) {
            $.netmask = netmask;
            return this;
        }

        /**
         * @param netmask The network mask to apply
         * 
         * @return builder
         * 
         */
        public Builder netmask(String netmask) {
            return netmask(Output.of(netmask));
        }

        /**
         * @param network The network IP to authorize
         * 
         * @return builder
         * 
         */
        public Builder network(@Nullable Output<String> network) {
            $.network = network;
            return this;
        }

        /**
         * @param network The network IP to authorize
         * 
         * @return builder
         * 
         */
        public Builder network(String network) {
            return network(Output.of(network));
        }

        /**
         * @param serviceName The internal name of your dedicated CEPH
         * 
         * @return builder
         * 
         */
        public Builder serviceName(@Nullable Output<String> serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The internal name of your dedicated CEPH
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        public CephAclState build() {
            return $;
        }
    }

}
