java-gitea-api/src/main/java/io/gitea/model/CreateUserOption.java

303 lines
7.3 KiB
Java

/*
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.16.8
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.gitea.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;
/**
* CreateUserOption create user options
*/
@ApiModel(description = "CreateUserOption create user options")
public class CreateUserOption {
@SerializedName("email")
private String email = null;
@SerializedName("full_name")
private String fullName = null;
@SerializedName("login_name")
private String loginName = null;
@SerializedName("must_change_password")
private Boolean mustChangePassword = null;
@SerializedName("password")
private String password = null;
@SerializedName("restricted")
private Boolean restricted = null;
@SerializedName("send_notify")
private Boolean sendNotify = null;
@SerializedName("source_id")
private Long sourceId = null;
@SerializedName("username")
private String username = null;
@SerializedName("visibility")
private String visibility = null;
public CreateUserOption email(String email) {
this.email = email;
return this;
}
/**
* Get email
* @return email
**/
@ApiModelProperty(required = true, value = "")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public CreateUserOption fullName(String fullName) {
this.fullName = fullName;
return this;
}
/**
* Get fullName
* @return fullName
**/
@ApiModelProperty(value = "")
public String getFullName() {
return fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
public CreateUserOption loginName(String loginName) {
this.loginName = loginName;
return this;
}
/**
* Get loginName
* @return loginName
**/
@ApiModelProperty(value = "")
public String getLoginName() {
return loginName;
}
public void setLoginName(String loginName) {
this.loginName = loginName;
}
public CreateUserOption mustChangePassword(Boolean mustChangePassword) {
this.mustChangePassword = mustChangePassword;
return this;
}
/**
* Get mustChangePassword
* @return mustChangePassword
**/
@ApiModelProperty(value = "")
public Boolean isMustChangePassword() {
return mustChangePassword;
}
public void setMustChangePassword(Boolean mustChangePassword) {
this.mustChangePassword = mustChangePassword;
}
public CreateUserOption password(String password) {
this.password = password;
return this;
}
/**
* Get password
* @return password
**/
@ApiModelProperty(required = true, value = "")
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public CreateUserOption restricted(Boolean restricted) {
this.restricted = restricted;
return this;
}
/**
* Get restricted
* @return restricted
**/
@ApiModelProperty(value = "")
public Boolean isRestricted() {
return restricted;
}
public void setRestricted(Boolean restricted) {
this.restricted = restricted;
}
public CreateUserOption sendNotify(Boolean sendNotify) {
this.sendNotify = sendNotify;
return this;
}
/**
* Get sendNotify
* @return sendNotify
**/
@ApiModelProperty(value = "")
public Boolean isSendNotify() {
return sendNotify;
}
public void setSendNotify(Boolean sendNotify) {
this.sendNotify = sendNotify;
}
public CreateUserOption sourceId(Long sourceId) {
this.sourceId = sourceId;
return this;
}
/**
* Get sourceId
* @return sourceId
**/
@ApiModelProperty(value = "")
public Long getSourceId() {
return sourceId;
}
public void setSourceId(Long sourceId) {
this.sourceId = sourceId;
}
public CreateUserOption username(String username) {
this.username = username;
return this;
}
/**
* Get username
* @return username
**/
@ApiModelProperty(required = true, value = "")
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public CreateUserOption visibility(String visibility) {
this.visibility = visibility;
return this;
}
/**
* Get visibility
* @return visibility
**/
@ApiModelProperty(value = "")
public String getVisibility() {
return visibility;
}
public void setVisibility(String visibility) {
this.visibility = visibility;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateUserOption createUserOption = (CreateUserOption) o;
return Objects.equals(this.email, createUserOption.email) &&
Objects.equals(this.fullName, createUserOption.fullName) &&
Objects.equals(this.loginName, createUserOption.loginName) &&
Objects.equals(this.mustChangePassword, createUserOption.mustChangePassword) &&
Objects.equals(this.password, createUserOption.password) &&
Objects.equals(this.restricted, createUserOption.restricted) &&
Objects.equals(this.sendNotify, createUserOption.sendNotify) &&
Objects.equals(this.sourceId, createUserOption.sourceId) &&
Objects.equals(this.username, createUserOption.username) &&
Objects.equals(this.visibility, createUserOption.visibility);
}
@Override
public int hashCode() {
return Objects.hash(email, fullName, loginName, mustChangePassword, password, restricted, sendNotify, sourceId, username, visibility);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateUserOption {\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n");
sb.append(" loginName: ").append(toIndentedString(loginName)).append("\n");
sb.append(" mustChangePassword: ").append(toIndentedString(mustChangePassword)).append("\n");
sb.append(" password: ").append(toIndentedString(password)).append("\n");
sb.append(" restricted: ").append(toIndentedString(restricted)).append("\n");
sb.append(" sendNotify: ").append(toIndentedString(sendNotify)).append("\n");
sb.append(" sourceId: ").append(toIndentedString(sourceId)).append("\n");
sb.append(" username: ").append(toIndentedString(username)).append("\n");
sb.append(" visibility: ").append(toIndentedString(visibility)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}