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

com.ovhcloud.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseUserArgs 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.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class GetPrivateDatabaseUserArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetPrivateDatabaseUserArgs Empty = new GetPrivateDatabaseUserArgs();

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

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

    /**
     * User name
     * 
     */
    @Import(name="userName", required=true)
    private Output userName;

    /**
     * @return User name
     * 
     */
    public Output userName() {
        return this.userName;
    }

    private GetPrivateDatabaseUserArgs() {}

    private GetPrivateDatabaseUserArgs(GetPrivateDatabaseUserArgs $) {
        this.serviceName = $.serviceName;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private GetPrivateDatabaseUserArgs $;

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

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

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

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

        /**
         * @param userName User name
         * 
         * @return builder
         * 
         */
        public Builder userName(Output userName) {
            $.userName = userName;
            return this;
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy