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

com.ovhcloud.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseAllowlistPlainArgs 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.Hosting.inputs;

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

    public static final GetPrivateDatabaseAllowlistPlainArgs Empty = new GetPrivateDatabaseAllowlistPlainArgs();

    /**
     * The whitelisted IP in your instance
     * 
     */
    @Import(name="ip")
    private @Nullable String ip;

    /**
     * @return The whitelisted IP in your instance
     * 
     */
    public Optional ip() {
        return Optional.ofNullable(this.ip);
    }

    /**
     * The internal name of your private database
     * 
     */
    @Import(name="serviceName", required=true)
    private String serviceName;

    /**
     * @return The internal name of your private database
     * 
     */
    public String serviceName() {
        return this.serviceName;
    }

    private GetPrivateDatabaseAllowlistPlainArgs() {}

    private GetPrivateDatabaseAllowlistPlainArgs(GetPrivateDatabaseAllowlistPlainArgs $) {
        this.ip = $.ip;
        this.serviceName = $.serviceName;
    }

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

    public static final class Builder {
        private GetPrivateDatabaseAllowlistPlainArgs $;

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

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

        /**
         * @param ip The whitelisted IP in your instance
         * 
         * @return builder
         * 
         */
        public Builder ip(@Nullable String ip) {
            $.ip = ip;
            return this;
        }

        /**
         * @param serviceName The internal name of your private database
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            $.serviceName = serviceName;
            return this;
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy