// *** 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.GetGroupMembershipsMembershipMemberKey;
import com.pulumi.gcp.cloudidentity.outputs.GetGroupMembershipsMembershipPreferredMemberKey;
import com.pulumi.gcp.cloudidentity.outputs.GetGroupMembershipsMembershipRole;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetGroupMembershipsMembership {
    private String createTime;
    /**
     * @return The parent Group resource under which to lookup the Membership names. Must be of the form groups/{group_id}.
     * 
     */
    private String group;
    /**
     * @return EntityKey of the member.  Structure is documented below.
     * 
     */
    private List<GetGroupMembershipsMembershipMemberKey> memberKeys;
    /**
     * @return The name of the MembershipRole. One of OWNER, MANAGER, MEMBER.
     * 
     */
    private String name;
    /**
     * @return EntityKey of the member.  Structure is documented below.
     * 
     */
    private List<GetGroupMembershipsMembershipPreferredMemberKey> preferredMemberKeys;
    /**
     * @return The MembershipRoles that apply to the Membership. Structure is documented below.
     * 
     */
    private List<GetGroupMembershipsMembershipRole> roles;
    /**
     * @return The type of the membership.
     * 
     */
    private String type;
    private String updateTime;

    private GetGroupMembershipsMembership() {}
    public String createTime() {
        return this.createTime;
    }
    /**
     * @return The parent Group resource under which to lookup the Membership names. Must be of the form groups/{group_id}.
     * 
     */
    public String group() {
        return this.group;
    }
    /**
     * @return EntityKey of the member.  Structure is documented below.
     * 
     */
    public List<GetGroupMembershipsMembershipMemberKey> memberKeys() {
        return this.memberKeys;
    }
    /**
     * @return The name of the MembershipRole. One of OWNER, MANAGER, MEMBER.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return EntityKey of the member.  Structure is documented below.
     * 
     */
    public List<GetGroupMembershipsMembershipPreferredMemberKey> preferredMemberKeys() {
        return this.preferredMemberKeys;
    }
    /**
     * @return The MembershipRoles that apply to the Membership. Structure is documented below.
     * 
     */
    public List<GetGroupMembershipsMembershipRole> roles() {
        return this.roles;
    }
    /**
     * @return The type of the membership.
     * 
     */
    public String type() {
        return this.type;
    }
    public String updateTime() {
        return this.updateTime;
    }

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

    public static Builder builder(GetGroupMembershipsMembership defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String createTime;
        private String group;
        private List<GetGroupMembershipsMembershipMemberKey> memberKeys;
        private String name;
        private List<GetGroupMembershipsMembershipPreferredMemberKey> preferredMemberKeys;
        private List<GetGroupMembershipsMembershipRole> roles;
        private String type;
        private String updateTime;
        public Builder() {}
        public Builder(GetGroupMembershipsMembership defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.createTime = defaults.createTime;
    	      this.group = defaults.group;
    	      this.memberKeys = defaults.memberKeys;
    	      this.name = defaults.name;
    	      this.preferredMemberKeys = defaults.preferredMemberKeys;
    	      this.roles = defaults.roles;
    	      this.type = defaults.type;
    	      this.updateTime = defaults.updateTime;
        }

        @CustomType.Setter
        public Builder createTime(String createTime) {
            this.createTime = Objects.requireNonNull(createTime);
            return this;
        }
        @CustomType.Setter
        public Builder group(String group) {
            this.group = Objects.requireNonNull(group);
            return this;
        }
        @CustomType.Setter
        public Builder memberKeys(List<GetGroupMembershipsMembershipMemberKey> memberKeys) {
            this.memberKeys = Objects.requireNonNull(memberKeys);
            return this;
        }
        public Builder memberKeys(GetGroupMembershipsMembershipMemberKey... memberKeys) {
            return memberKeys(List.of(memberKeys));
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder preferredMemberKeys(List<GetGroupMembershipsMembershipPreferredMemberKey> preferredMemberKeys) {
            this.preferredMemberKeys = Objects.requireNonNull(preferredMemberKeys);
            return this;
        }
        public Builder preferredMemberKeys(GetGroupMembershipsMembershipPreferredMemberKey... preferredMemberKeys) {
            return preferredMemberKeys(List.of(preferredMemberKeys));
        }
        @CustomType.Setter
        public Builder roles(List<GetGroupMembershipsMembershipRole> roles) {
            this.roles = Objects.requireNonNull(roles);
            return this;
        }
        public Builder roles(GetGroupMembershipsMembershipRole... roles) {
            return roles(List.of(roles));
        }
        @CustomType.Setter
        public Builder type(String type) {
            this.type = Objects.requireNonNull(type);
            return this;
        }
        @CustomType.Setter
        public Builder updateTime(String updateTime) {
            this.updateTime = Objects.requireNonNull(updateTime);
            return this;
        }
        public GetGroupMembershipsMembership build() {
            final var o = new GetGroupMembershipsMembership();
            o.createTime = createTime;
            o.group = group;
            o.memberKeys = memberKeys;
            o.name = name;
            o.preferredMemberKeys = preferredMemberKeys;
            o.roles = roles;
            o.type = type;
            o.updateTime = updateTime;
            return o;
        }
    }
}
