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

com.pulumi.googlenative.sqladmin.v1.outputs.SqlServerUserDetailsResponse Maven / Gradle / Ivy

// *** 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.googlenative.sqladmin.v1.outputs;

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

@CustomType
public final class SqlServerUserDetailsResponse {
    /**
     * @return If the user has been disabled
     * 
     */
    private Boolean disabled;
    /**
     * @return The server roles for this user
     * 
     */
    private List serverRoles;

    private SqlServerUserDetailsResponse() {}
    /**
     * @return If the user has been disabled
     * 
     */
    public Boolean disabled() {
        return this.disabled;
    }
    /**
     * @return The server roles for this user
     * 
     */
    public List serverRoles() {
        return this.serverRoles;
    }

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

    public static Builder builder(SqlServerUserDetailsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean disabled;
        private List serverRoles;
        public Builder() {}
        public Builder(SqlServerUserDetailsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.disabled = defaults.disabled;
    	      this.serverRoles = defaults.serverRoles;
        }

        @CustomType.Setter
        public Builder disabled(Boolean disabled) {
            this.disabled = Objects.requireNonNull(disabled);
            return this;
        }
        @CustomType.Setter
        public Builder serverRoles(List serverRoles) {
            this.serverRoles = Objects.requireNonNull(serverRoles);
            return this;
        }
        public Builder serverRoles(String... serverRoles) {
            return serverRoles(List.of(serverRoles));
        }
        public SqlServerUserDetailsResponse build() {
            final var o = new SqlServerUserDetailsResponse();
            o.disabled = disabled;
            o.serverRoles = serverRoles;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy