166 lines
3.8 KiB
Java
166 lines
3.8 KiB
Java
/*
|
|
* Gitea API.
|
|
* This documentation describes the Gitea API.
|
|
*
|
|
* OpenAPI spec version: 1.15.0+dev-206-gae6d7860b
|
|
*
|
|
*
|
|
* 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;
|
|
import org.threeten.bp.OffsetDateTime;
|
|
|
|
/**
|
|
* EditMilestoneOption options for editing a milestone
|
|
*/
|
|
@ApiModel(description = "EditMilestoneOption options for editing a milestone")
|
|
|
|
public class EditMilestoneOption {
|
|
@SerializedName("description")
|
|
private String description = null;
|
|
|
|
@SerializedName("due_on")
|
|
private OffsetDateTime dueOn = null;
|
|
|
|
@SerializedName("state")
|
|
private String state = null;
|
|
|
|
@SerializedName("title")
|
|
private String title = null;
|
|
|
|
public EditMilestoneOption 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 EditMilestoneOption dueOn(OffsetDateTime dueOn) {
|
|
this.dueOn = dueOn;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get dueOn
|
|
* @return dueOn
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public OffsetDateTime getDueOn() {
|
|
return dueOn;
|
|
}
|
|
|
|
public void setDueOn(OffsetDateTime dueOn) {
|
|
this.dueOn = dueOn;
|
|
}
|
|
|
|
public EditMilestoneOption state(String state) {
|
|
this.state = state;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get state
|
|
* @return state
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getState() {
|
|
return state;
|
|
}
|
|
|
|
public void setState(String state) {
|
|
this.state = state;
|
|
}
|
|
|
|
public EditMilestoneOption title(String title) {
|
|
this.title = title;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get title
|
|
* @return title
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean equals(java.lang.Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
EditMilestoneOption editMilestoneOption = (EditMilestoneOption) o;
|
|
return Objects.equals(this.description, editMilestoneOption.description) &&
|
|
Objects.equals(this.dueOn, editMilestoneOption.dueOn) &&
|
|
Objects.equals(this.state, editMilestoneOption.state) &&
|
|
Objects.equals(this.title, editMilestoneOption.title);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(description, dueOn, state, title);
|
|
}
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class EditMilestoneOption {\n");
|
|
|
|
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
|
sb.append(" dueOn: ").append(toIndentedString(dueOn)).append("\n");
|
|
sb.append(" state: ").append(toIndentedString(state)).append("\n");
|
|
sb.append(" title: ").append(toIndentedString(title)).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 ");
|
|
}
|
|
|
|
}
|
|
|