sdk/java/src/main/java/com/pulumi/ovh/Hosting/outputs/GetPrivateDatabaseDbUser.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.Hosting.outputs;

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

@CustomType
public final class GetPrivateDatabaseDbUser {
    /**
     * @return Grant of this user for this database
     * 
     */
    private String grantType;
    /**
     * @return User&#39;s name granted on this database
     * 
     */
    private String userName;

    private GetPrivateDatabaseDbUser() {}
    /**
     * @return Grant of this user for this database
     * 
     */
    public String grantType() {
        return this.grantType;
    }
    /**
     * @return User&#39;s name granted on this database
     * 
     */
    public String userName() {
        return this.userName;
    }

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

    public static Builder builder(GetPrivateDatabaseDbUser defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String grantType;
        private String userName;
        public Builder() {}
        public Builder(GetPrivateDatabaseDbUser defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.grantType = defaults.grantType;
    	      this.userName = defaults.userName;
        }

        @CustomType.Setter
        public Builder grantType(String grantType) {
            this.grantType = Objects.requireNonNull(grantType);
            return this;
        }
        @CustomType.Setter
        public Builder userName(String userName) {
            this.userName = Objects.requireNonNull(userName);
            return this;
        }
        public GetPrivateDatabaseDbUser build() {
            final var o = new GetPrivateDatabaseDbUser();
            o.grantType = grantType;
            o.userName = userName;
            return o;
        }
    }
}
