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

org.zendesk.client.v2.model.Identity Maven / Gradle / Ivy

The newest version!
package org.zendesk.client.v2.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Date;

/**
 * @author stephenc
 * @since 09/04/2013 14:37
 */
public class Identity implements Serializable {

  private static final long serialVersionUID = 1L;

  private Long id;
  private String url;
  private Long userId;
  private String type;
  private String value;
  private Boolean verified;
  private Boolean primary;
  private Date createdAt;
  private Date updatedAt;

  public Identity() {}

  public Identity(String type, String value) {
    this.type = type;
    this.value = value;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public String getValue() {
    return value;
  }

  public void setValue(String value) {
    this.value = value;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  @JsonProperty("user_id")
  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }

  public Boolean getVerified() {
    return verified;
  }

  public void setVerified(Boolean verified) {
    this.verified = verified;
  }

  public Boolean getPrimary() {
    return primary;
  }

  public void setPrimary(Boolean primary) {
    this.primary = primary;
  }

  @JsonProperty("created_at")
  public Date getCreatedAt() {
    return createdAt;
  }

  public void setCreatedAt(Date createdAt) {
    this.createdAt = createdAt;
  }

  @JsonProperty("updated_at")
  public Date getUpdatedAt() {
    return updatedAt;
  }

  public void setUpdatedAt(Date updatedAt) {
    this.updatedAt = updatedAt;
  }

  @Override
  public String toString() {
    return "Identity{"
        + "id="
        + id
        + ", url='"
        + url
        + '\''
        + ", userId="
        + userId
        + ", type='"
        + type
        + '\''
        + ", value='"
        + value
        + '\''
        + ", verified="
        + verified
        + ", primary="
        + primary
        + ", createdAt="
        + createdAt
        + ", updatedAt="
        + updatedAt
        + '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy