// *** 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.gcp.gkeonprem.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.gkeonprem.outputs.BareMetalAdminClusterSecurityConfigAuthorizationAdminUser;
import java.util.List;
import java.util.Objects;

@CustomType
public final class BareMetalAdminClusterSecurityConfigAuthorization {
    /**
     * @return Users that will be granted the cluster-admin role on the cluster, providing full access to the cluster.
     * Structure is documented below.
     * 
     */
    private List<BareMetalAdminClusterSecurityConfigAuthorizationAdminUser> adminUsers;

    private BareMetalAdminClusterSecurityConfigAuthorization() {}
    /**
     * @return Users that will be granted the cluster-admin role on the cluster, providing full access to the cluster.
     * Structure is documented below.
     * 
     */
    public List<BareMetalAdminClusterSecurityConfigAuthorizationAdminUser> adminUsers() {
        return this.adminUsers;
    }

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

    public static Builder builder(BareMetalAdminClusterSecurityConfigAuthorization defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<BareMetalAdminClusterSecurityConfigAuthorizationAdminUser> adminUsers;
        public Builder() {}
        public Builder(BareMetalAdminClusterSecurityConfigAuthorization defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.adminUsers = defaults.adminUsers;
        }

        @CustomType.Setter
        public Builder adminUsers(List<BareMetalAdminClusterSecurityConfigAuthorizationAdminUser> adminUsers) {
            this.adminUsers = Objects.requireNonNull(adminUsers);
            return this;
        }
        public Builder adminUsers(BareMetalAdminClusterSecurityConfigAuthorizationAdminUser... adminUsers) {
            return adminUsers(List.of(adminUsers));
        }
        public BareMetalAdminClusterSecurityConfigAuthorization build() {
            final var o = new BareMetalAdminClusterSecurityConfigAuthorization();
            o.adminUsers = adminUsers;
            return o;
        }
    }
}
