187 lines
4.4 KiB
Java
187 lines
4.4 KiB
Java
/*
|
|
* Gitea API.
|
|
* This documentation describes the Gitea API.
|
|
*
|
|
* OpenAPI spec version: 1.1.1
|
|
*
|
|
*
|
|
* 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 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;
|
|
|
|
/**
|
|
* CreateOrgOption options for creating an organization
|
|
*/
|
|
@ApiModel(description = "CreateOrgOption options for creating an organization")
|
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-24T18:24:48.590+01:00")
|
|
public class CreateOrgOption {
|
|
@SerializedName("description")
|
|
private String description = null;
|
|
|
|
@SerializedName("full_name")
|
|
private String fullName = null;
|
|
|
|
@SerializedName("location")
|
|
private String location = null;
|
|
|
|
@SerializedName("username")
|
|
private String username = null;
|
|
|
|
@SerializedName("website")
|
|
private String website = null;
|
|
|
|
public CreateOrgOption description(String description) {
|
|
this.description = description;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get description
|
|
* @return description
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public CreateOrgOption 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 CreateOrgOption location(String location) {
|
|
this.location = location;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get location
|
|
* @return location
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getLocation() {
|
|
return location;
|
|
}
|
|
|
|
public void setLocation(String location) {
|
|
this.location = location;
|
|
}
|
|
|
|
public CreateOrgOption 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 CreateOrgOption website(String website) {
|
|
this.website = website;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get website
|
|
* @return website
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getWebsite() {
|
|
return website;
|
|
}
|
|
|
|
public void setWebsite(String website) {
|
|
this.website = website;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean equals(java.lang.Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
CreateOrgOption createOrgOption = (CreateOrgOption) o;
|
|
return Objects.equals(this.description, createOrgOption.description) &&
|
|
Objects.equals(this.fullName, createOrgOption.fullName) &&
|
|
Objects.equals(this.location, createOrgOption.location) &&
|
|
Objects.equals(this.username, createOrgOption.username) &&
|
|
Objects.equals(this.website, createOrgOption.website);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(description, fullName, location, username, website);
|
|
}
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class CreateOrgOption {\n");
|
|
|
|
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
|
sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n");
|
|
sb.append(" location: ").append(toIndentedString(location)).append("\n");
|
|
sb.append(" username: ").append(toIndentedString(username)).append("\n");
|
|
sb.append(" website: ").append(toIndentedString(website)).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 ");
|
|
}
|
|
|
|
}
|
|
|