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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.cloudidentity.outputs.GetGroupMembershipsMembership;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetGroupMembershipsResult {
    private String group;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return The list of memberships under the given group. Structure is documented below.
     * 
     */
    private List<GetGroupMembershipsMembership> memberships;

    private GetGroupMembershipsResult() {}
    public String group() {
        return this.group;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The list of memberships under the given group. Structure is documented below.
     * 
     */
    public List<GetGroupMembershipsMembership> memberships() {
        return this.memberships;
    }

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

    public static Builder builder(GetGroupMembershipsResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String group;
        private String id;
        private List<GetGroupMembershipsMembership> memberships;
        public Builder() {}
        public Builder(GetGroupMembershipsResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.group = defaults.group;
    	      this.id = defaults.id;
    	      this.memberships = defaults.memberships;
        }

        @CustomType.Setter
        public Builder group(String group) {
            this.group = Objects.requireNonNull(group);
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder memberships(List<GetGroupMembershipsMembership> memberships) {
            this.memberships = Objects.requireNonNull(memberships);
            return this;
        }
        public Builder memberships(GetGroupMembershipsMembership... memberships) {
            return memberships(List.of(memberships));
        }
        public GetGroupMembershipsResult build() {
            final var o = new GetGroupMembershipsResult();
            o.group = group;
            o.id = id;
            o.memberships = memberships;
            return o;
        }
    }
}
