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

com.ovhcloud.pulumi.ovh.Dbaas.LogsClusterArgs Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.Dbaas;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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> archiveAllowedNetworks;

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

    /**
     * Cluster ID. If not provided, the default cluster_id is used
     * 
     */
    @Import(name="clusterId")
    private @Nullable Output clusterId;

    /**
     * @return Cluster ID. If not provided, the default cluster_id is used
     * 
     */
    public Optional> clusterId() {
        return Optional.ofNullable(this.clusterId);
    }

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

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

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

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

    /**
     * The service name
     * 
     */
    @Import(name="serviceName", required=true)
    private Output serviceName;

    /**
     * @return The service name
     * 
     */
    public Output serviceName() {
        return this.serviceName;
    }

    private LogsClusterArgs() {}

    private LogsClusterArgs(LogsClusterArgs $) {
        this.archiveAllowedNetworks = $.archiveAllowedNetworks;
        this.clusterId = $.clusterId;
        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> archiveAllowedNetworks) {
            $.archiveAllowedNetworks = archiveAllowedNetworks;
            return this;
        }

        /**
         * @param archiveAllowedNetworks List of IP blocks
         * 
         * @return builder
         * 
         */
        public Builder archiveAllowedNetworks(List 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 clusterId Cluster ID. If not provided, the default cluster_id is used
         * 
         * @return builder
         * 
         */
        public Builder clusterId(@Nullable Output clusterId) {
            $.clusterId = clusterId;
            return this;
        }

        /**
         * @param clusterId Cluster ID. If not provided, the default cluster_id is used
         * 
         * @return builder
         * 
         */
        public Builder clusterId(String clusterId) {
            return clusterId(Output.of(clusterId));
        }

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

        /**
         * @param directInputAllowedNetworks List of IP blocks
         * 
         * @return builder
         * 
         */
        public Builder directInputAllowedNetworks(List 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> queryAllowedNetworks) {
            $.queryAllowedNetworks = queryAllowedNetworks;
            return this;
        }

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

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

        /**
         * @param serviceName The service name
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

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

        public LogsClusterArgs build() {
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("LogsClusterArgs", "serviceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy