package io.apibuilder.api.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.String; import java.util.UUID; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.12.8 * User agent: apibuilder app.apibuilder.io/apicollective/apibuilder-api/0.12.8/java_aws_lambda_pojo_client * * WARNING: not all features (notably unions) and data types work with the java generator yet. * Java POJO generator is designed to be used with AWS Lambdas. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact daniel.kirby@gilt.com * * A membership represents a user in a specific role to an organization. Memberships cannot be created directly. Instead you first create a membership request, then that request is either accepted or declined. */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class Membership { @NotNull protected UUID guid; @NotNull protected User user; @NotNull protected Organization organization; @NotNull protected String role; @NotNull protected io.apibuilder.common.v0.models.Audit audit; public Membership(UUID guid, User user, Organization organization, String role, io.apibuilder.common.v0.models.Audit audit) { this.guid = guid; this.user = user; this.organization = organization; this.role = role; this.audit = audit; } public Membership() { } /** * Internal unique identifier for this membership. */ public UUID getGuid() { return guid; } public void setGuid(UUID guid) { this.guid = guid; } public User getUser() { return user; } public void setUser(User user) { this.user = user; } public Organization getOrganization() { return organization; } public void setOrganization(Organization organization) { this.organization = organization; } /** * The role this user plays for this organization. Typically member or admin. */ public String getRole() { return role; } public void setRole(String role) { this.role = role; } public io.apibuilder.common.v0.models.Audit getAudit() { return audit; } public void setAudit(io.apibuilder.common.v0.models.Audit audit) { this.audit = audit; } }