sdk/java/src/main/java/com/pulumi/ovh/Dbaas/LogsClusterArgs.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.Dbaas;

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


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

    public static final LogsClusterArgs Empty = new LogsClusterArgs();

    /**
     * List of IP blocks
     * 
     */
    @Import(name="archiveAllowedNetworks")
    private @Nullable Output<List<String>> archiveAllowedNetworks;

    /**
     * @return List of IP blocks
     * 
     */
    public Optional<Output<List<String>>> archiveAllowedNetworks() {
        return Optional.ofNullable(this.archiveAllowedNetworks);
    }

    /**
     * List of IP blocks
     * 
     */
    @Import(name="directInputAllowedNetworks")
    private @Nullable Output<List<String>> directInputAllowedNetworks;

    /**
     * @return List of IP blocks
     * 
     */
    public Optional<Output<List<String>>> directInputAllowedNetworks() {
        return Optional.ofNullable(this.directInputAllowedNetworks);
    }

    /**
     * List of IP blocks
     * 
     */
    @Import(name="queryAllowedNetworks")
    private @Nullable Output<List<String>> queryAllowedNetworks;

    /**
     * @return List of IP blocks
     * 
     */
    public Optional<Output<List<String>>> queryAllowedNetworks() {
        return Optional.ofNullable(this.queryAllowedNetworks);
    }

    @Import(name="serviceName", required=true)
    private Output<String> serviceName;

    public Output<String> serviceName() {
        return this.serviceName;
    }

    private LogsClusterArgs() {}

    private LogsClusterArgs(LogsClusterArgs $) {
        this.archiveAllowedNetworks = $.archiveAllowedNetworks;
        this.directInputAllowedNetworks = $.directInputAllowedNetworks;
        this.queryAllowedNetworks = $.queryAllowedNetworks;
        this.serviceName = $.serviceName;
    }

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

    public static final class Builder {
        private LogsClusterArgs $;

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

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

        /**
         * @param archiveAllowedNetworks List of IP blocks
         * 
         * @return builder
         * 
         */
        public Builder archiveAllowedNetworks(@Nullable Output<List<String>> archiveAllowedNetworks) {
            $.archiveAllowedNetworks = archiveAllowedNetworks;
            return this;
        }

        /**
         * @param archiveAllowedNetworks List of IP blocks
         * 
         * @return builder
         * 
         */
        public Builder archiveAllowedNetworks(List<String> archiveAllowedNetworks) {
            return archiveAllowedNetworks(Output.of(archiveAllowedNetworks));
        }

        /**
         * @param archiveAllowedNetworks List of IP blocks
         * 
         * @return builder
         * 
         */
        public Builder archiveAllowedNetworks(String... archiveAllowedNetworks) {
            return archiveAllowedNetworks(List.of(archiveAllowedNetworks));
        }

        /**
         * @param directInputAllowedNetworks List of IP blocks
         * 
         * @return builder
         * 
         */
        public Builder directInputAllowedNetworks(@Nullable Output<List<String>> directInputAllowedNetworks) {
            $.directInputAllowedNetworks = directInputAllowedNetworks;
            return this;
        }

        /**
         * @param directInputAllowedNetworks List of IP blocks
         * 
         * @return builder
         * 
         */
        public Builder directInputAllowedNetworks(List<String> directInputAllowedNetworks) {
            return directInputAllowedNetworks(Output.of(directInputAllowedNetworks));
        }

        /**
         * @param directInputAllowedNetworks List of IP blocks
         * 
         * @return builder
         * 
         */
        public Builder directInputAllowedNetworks(String... directInputAllowedNetworks) {
            return directInputAllowedNetworks(List.of(directInputAllowedNetworks));
        }

        /**
         * @param queryAllowedNetworks List of IP blocks
         * 
         * @return builder
         * 
         */
        public Builder queryAllowedNetworks(@Nullable Output<List<String>> queryAllowedNetworks) {
            $.queryAllowedNetworks = queryAllowedNetworks;
            return this;
        }

        /**
         * @param queryAllowedNetworks List of IP blocks
         * 
         * @return builder
         * 
         */
        public Builder queryAllowedNetworks(List<String> queryAllowedNetworks) {
            return queryAllowedNetworks(Output.of(queryAllowedNetworks));
        }

        /**
         * @param queryAllowedNetworks List of IP blocks
         * 
         * @return builder
         * 
         */
        public Builder queryAllowedNetworks(String... queryAllowedNetworks) {
            return queryAllowedNetworks(List.of(queryAllowedNetworks));
        }

        public Builder serviceName(Output<String> serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

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

}
