io.lakefs.clients.api.model.User Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-client Show documentation
Show all versions of api-client Show documentation
lakeFS OpenAPI Java client legacy SDK
/*
* lakeFS API
* lakeFS HTTP API
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.lakefs.clients.api.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* User
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class User {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_CREATION_DATE = "creation_date";
@SerializedName(SERIALIZED_NAME_CREATION_DATE)
private Long creationDate;
public static final String SERIALIZED_NAME_FRIENDLY_NAME = "friendly_name";
@SerializedName(SERIALIZED_NAME_FRIENDLY_NAME)
private String friendlyName;
public static final String SERIALIZED_NAME_EMAIL = "email";
@SerializedName(SERIALIZED_NAME_EMAIL)
private String email;
public User id(String id) {
this.id = id;
return this;
}
/**
* A unique identifier for the user. Cannot be edited.
* @return id
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "A unique identifier for the user. Cannot be edited.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public User creationDate(Long creationDate) {
this.creationDate = creationDate;
return this;
}
/**
* Unix Epoch in seconds
* @return creationDate
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Unix Epoch in seconds")
public Long getCreationDate() {
return creationDate;
}
public void setCreationDate(Long creationDate) {
this.creationDate = creationDate;
}
public User friendlyName(String friendlyName) {
this.friendlyName = friendlyName;
return this;
}
/**
* A shorter name for the user than the id. Unlike id it does not identify the user (it might not be unique). Used in some places in the UI.
* @return friendlyName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A shorter name for the user than the id. Unlike id it does not identify the user (it might not be unique). Used in some places in the UI. ")
public String getFriendlyName() {
return friendlyName;
}
public void setFriendlyName(String friendlyName) {
this.friendlyName = friendlyName;
}
public User email(String email) {
this.email = email;
return this;
}
/**
* The email address of the user. If API authentication is enabled, this field is mandatory and will be invited to login. If API authentication is disabled, this field will be ignored. All current APIAuthenticators require the email to be lowercase and unique, although custom authenticators may not enforce this.
* @return email
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The email address of the user. If API authentication is enabled, this field is mandatory and will be invited to login. If API authentication is disabled, this field will be ignored. All current APIAuthenticators require the email to be lowercase and unique, although custom authenticators may not enforce this. ")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
User user = (User) o;
return Objects.equals(this.id, user.id) &&
Objects.equals(this.creationDate, user.creationDate) &&
Objects.equals(this.friendlyName, user.friendlyName) &&
Objects.equals(this.email, user.email);
}
@Override
public int hashCode() {
return Objects.hash(id, creationDate, friendlyName, email);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class User {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n");
sb.append(" friendlyName: ").append(toIndentedString(friendlyName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}