com.withabound.models.users.UserRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of withabound-java Show documentation
Show all versions of withabound-java Show documentation
The Abound Java SDK provides convenient access to the Abound API from applications written in Java.
The newest version!
package com.withabound.models.users;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.Optional;
import lombok.Builder;
import lombok.Setter;
/** Request body for creating or updating User resources */
@Setter
@Builder
public class UserRequest {
private String email;
private String foreignId;
private JsonObject metadata;
private JsonElement notes;
private UserProfile profile;
private UserBusiness business;
public Optional getEmail() {
return Optional.ofNullable(email);
}
public Optional getForeignId() {
return Optional.ofNullable(foreignId);
}
public Optional getMetadata() {
return Optional.ofNullable(metadata);
}
public Optional getNotes() {
return Optional.ofNullable(notes);
}
public Optional getProfile() {
return Optional.ofNullable(profile);
}
public Optional getBusiness() {
return Optional.ofNullable(business);
}
}