sdk/java/src/main/java/com/pulumi/ovh/Hosting/PrivateDatabaseUserGrantArgs.java
<gh_stars>0// *** 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.Hosting;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;


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

    public static final PrivateDatabaseUserGrantArgs Empty = new PrivateDatabaseUserGrantArgs();

    /**
     * Database name where add grant.
     * 
     */
    @Import(name="databaseName", required=true)
    private Output<String> databaseName;

    /**
     * @return Database name where add grant.
     * 
     */
    public Output<String> databaseName() {
        return this.databaseName;
    }

    /**
     * Database name where add grant. Values can be:
     * - admin
     * - none
     * - ro
     * - rw
     * 
     */
    @Import(name="grant", required=true)
    private Output<String> grant;

    /**
     * @return Database name where add grant. Values can be:
     * - admin
     * - none
     * - ro
     * - rw
     * 
     */
    public Output<String> grant() {
        return this.grant;
    }

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

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

    /**
     * User name used to connect on your databases.
     * 
     */
    @Import(name="userName", required=true)
    private Output<String> userName;

    /**
     * @return User name used to connect on your databases.
     * 
     */
    public Output<String> userName() {
        return this.userName;
    }

    private PrivateDatabaseUserGrantArgs() {}

    private PrivateDatabaseUserGrantArgs(PrivateDatabaseUserGrantArgs $) {
        this.databaseName = $.databaseName;
        this.grant = $.grant;
        this.serviceName = $.serviceName;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private PrivateDatabaseUserGrantArgs $;

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

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

        /**
         * @param databaseName Database name where add grant.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(Output<String> databaseName) {
            $.databaseName = databaseName;
            return this;
        }

        /**
         * @param databaseName Database name where add grant.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(String databaseName) {
            return databaseName(Output.of(databaseName));
        }

        /**
         * @param grant Database name where add grant. Values can be:
         * - admin
         * - none
         * - ro
         * - rw
         * 
         * @return builder
         * 
         */
        public Builder grant(Output<String> grant) {
            $.grant = grant;
            return this;
        }

        /**
         * @param grant Database name where add grant. Values can be:
         * - admin
         * - none
         * - ro
         * - rw
         * 
         * @return builder
         * 
         */
        public Builder grant(String grant) {
            return grant(Output.of(grant));
        }

        /**
         * @param serviceName The internal name of your private database.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output<String> 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 used to connect on your databases.
         * 
         * @return builder
         * 
         */
        public Builder userName(Output<String> userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName User name used to connect on your databases.
         * 
         * @return builder
         * 
         */
        public Builder userName(String userName) {
            return userName(Output.of(userName));
        }

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

}
