All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.withabound.models.users.UserRequest Maven / Gradle / Ivy

Go to download

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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy