|
| 1 | +/* |
| 2 | + * Domainrobot JSON API |
| 3 | + * Domainrobot JSON API for managing: Domains, SSL Certificates, DNS and much more. |
| 4 | + * |
| 5 | + * OpenAPI spec version: v1 |
| 6 | + * |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by the swagger code generator program. |
| 9 | + * https://github.com/swagger-api/swagger-codegen.git |
| 10 | + * Do not edit the class manually. |
| 11 | + */ |
| 12 | + |
| 13 | +package org.domainrobot.sdk.models; |
| 14 | + |
| 15 | +import java.util.Objects; |
| 16 | +import java.util.Arrays; |
| 17 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 18 | +import com.fasterxml.jackson.annotation.JsonCreator; |
| 19 | +import com.fasterxml.jackson.annotation.JsonValue; |
| 20 | +import io.swagger.annotations.ApiModel; |
| 21 | +import io.swagger.annotations.ApiModelProperty; |
| 22 | +import java.util.ArrayList; |
| 23 | +import java.util.List; |
| 24 | +import org.domainrobot.sdk.models.generated.Message; |
| 25 | +import org.domainrobot.sdk.models.generated.Job; |
| 26 | +import org.domainrobot.sdk.models.generated.ResponseObject; |
| 27 | +import org.domainrobot.sdk.models.generated.ResponseStatus; |
| 28 | +import javax.validation.constraints.*; |
| 29 | +import javax.validation.Valid; |
| 30 | + |
| 31 | +/** |
| 32 | + * JsonResponseDataJob |
| 33 | + */ |
| 34 | +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-07-17T17:02:20.970+02:00") |
| 35 | +public class JsonResponseDataJob { |
| 36 | + @JsonProperty("stid") |
| 37 | + private String stid = null; |
| 38 | + |
| 39 | + @JsonProperty("messages") |
| 40 | + private List<Message> messages = null; |
| 41 | + |
| 42 | + @JsonProperty("status") |
| 43 | + private ResponseStatus status = null; |
| 44 | + |
| 45 | + @JsonProperty("object") |
| 46 | + private ResponseObject object = null; |
| 47 | + |
| 48 | + @JsonProperty("data") |
| 49 | + private List<Job> data = null; |
| 50 | + |
| 51 | + @JsonProperty("ctid") |
| 52 | + private String ctid = null; |
| 53 | + |
| 54 | + public JsonResponseDataJob stid(String stid) { |
| 55 | + this.stid = stid; |
| 56 | + return this; |
| 57 | + } |
| 58 | + |
| 59 | + /** |
| 60 | + * The server transaction id for the response. |
| 61 | + * |
| 62 | + * @return stid |
| 63 | + **/ |
| 64 | + @ApiModelProperty(value = "The server transaction id for the response.") |
| 65 | + public String getStid() { |
| 66 | + return stid; |
| 67 | + } |
| 68 | + |
| 69 | + public void setStid(String stid) { |
| 70 | + this.stid = stid; |
| 71 | + } |
| 72 | + |
| 73 | + public JsonResponseDataJob messages(List<Message> messages) { |
| 74 | + this.messages = messages; |
| 75 | + return this; |
| 76 | + } |
| 77 | + |
| 78 | + public JsonResponseDataJob addMessagesItem(Message messagesItem) { |
| 79 | + if (this.messages == null) { |
| 80 | + this.messages = new ArrayList<Message>(); |
| 81 | + } |
| 82 | + this.messages.add(messagesItem); |
| 83 | + return this; |
| 84 | + } |
| 85 | + |
| 86 | + /** |
| 87 | + * The messages belonging to the response. |
| 88 | + * |
| 89 | + * @return messages |
| 90 | + **/ |
| 91 | + @Valid |
| 92 | + @ApiModelProperty(value = "The messages belonging to the response.") |
| 93 | + public List<Message> getMessages() { |
| 94 | + return messages; |
| 95 | + } |
| 96 | + |
| 97 | + public void setMessages(List<Message> messages) { |
| 98 | + this.messages = messages; |
| 99 | + } |
| 100 | + |
| 101 | + public JsonResponseDataJob status(ResponseStatus status) { |
| 102 | + this.status = status; |
| 103 | + return this; |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * The status of the response. |
| 108 | + * |
| 109 | + * @return status |
| 110 | + **/ |
| 111 | + @Valid |
| 112 | + @ApiModelProperty(value = "The status of the response.") |
| 113 | + public ResponseStatus getStatus() { |
| 114 | + return status; |
| 115 | + } |
| 116 | + |
| 117 | + public void setStatus(ResponseStatus status) { |
| 118 | + this.status = status; |
| 119 | + } |
| 120 | + |
| 121 | + public JsonResponseDataJob object(ResponseObject object) { |
| 122 | + this.object = object; |
| 123 | + return this; |
| 124 | + } |
| 125 | + |
| 126 | + /** |
| 127 | + * The object of the response. |
| 128 | + * |
| 129 | + * @return object |
| 130 | + **/ |
| 131 | + @Valid |
| 132 | + @ApiModelProperty(value = "The object of the response.") |
| 133 | + public ResponseObject getObject() { |
| 134 | + return object; |
| 135 | + } |
| 136 | + |
| 137 | + public void setObject(ResponseObject object) { |
| 138 | + this.object = object; |
| 139 | + } |
| 140 | + |
| 141 | + public JsonResponseDataJob data(List<Job> data) { |
| 142 | + this.data = data; |
| 143 | + return this; |
| 144 | + } |
| 145 | + |
| 146 | + public JsonResponseDataJob addDataItem(Job dataItem) { |
| 147 | + if (this.data == null) { |
| 148 | + this.data = new ArrayList<Job>(); |
| 149 | + } |
| 150 | + this.data.add(dataItem); |
| 151 | + return this; |
| 152 | + } |
| 153 | + |
| 154 | + /** |
| 155 | + * The data for the response. The type of the objects are depending on the |
| 156 | + * request and are also specified in the responseObject value of the response. |
| 157 | + * |
| 158 | + * @return data |
| 159 | + **/ |
| 160 | + @Valid |
| 161 | + @ApiModelProperty(value = "The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response.") |
| 162 | + public List<Job> getData() { |
| 163 | + return data; |
| 164 | + } |
| 165 | + |
| 166 | + public void setData(List<Job> data) { |
| 167 | + this.data = data; |
| 168 | + } |
| 169 | + |
| 170 | + public JsonResponseDataJob ctid(String ctid) { |
| 171 | + this.ctid = ctid; |
| 172 | + return this; |
| 173 | + } |
| 174 | + |
| 175 | + /** |
| 176 | + * The client transaction id for the response. |
| 177 | + * |
| 178 | + * @return ctid |
| 179 | + **/ |
| 180 | + @ApiModelProperty(value = "The client transaction id for the response.") |
| 181 | + public String getCtid() { |
| 182 | + return ctid; |
| 183 | + } |
| 184 | + |
| 185 | + public void setCtid(String ctid) { |
| 186 | + this.ctid = ctid; |
| 187 | + } |
| 188 | + |
| 189 | + @Override |
| 190 | + public boolean equals(java.lang.Object o) { |
| 191 | + if (this == o) { |
| 192 | + return true; |
| 193 | + } |
| 194 | + if (o == null || getClass() != o.getClass()) { |
| 195 | + return false; |
| 196 | + } |
| 197 | + JsonResponseDataJob JsonResponseDataJob = (JsonResponseDataJob) o; |
| 198 | + return Objects.equals(this.stid, JsonResponseDataJob.stid) |
| 199 | + && Objects.equals(this.messages, JsonResponseDataJob.messages) |
| 200 | + && Objects.equals(this.status, JsonResponseDataJob.status) |
| 201 | + && Objects.equals(this.object, JsonResponseDataJob.object) |
| 202 | + && Objects.equals(this.data, JsonResponseDataJob.data) && Objects.equals(this.ctid, JsonResponseDataJob.ctid); |
| 203 | + } |
| 204 | + |
| 205 | + @Override |
| 206 | + public int hashCode() { |
| 207 | + return Objects.hash(stid, messages, status, object, data, ctid); |
| 208 | + } |
| 209 | + |
| 210 | + @Override |
| 211 | + public String toString() { |
| 212 | + StringBuilder sb = new StringBuilder(); |
| 213 | + sb.append("class JsonResponseDataJob {\n"); |
| 214 | + |
| 215 | + sb.append(" stid: ").append(toIndentedString(stid)).append("\n"); |
| 216 | + sb.append(" messages: ").append(toIndentedString(messages)).append("\n"); |
| 217 | + sb.append(" status: ").append(toIndentedString(status)).append("\n"); |
| 218 | + sb.append(" object: ").append(toIndentedString(object)).append("\n"); |
| 219 | + sb.append(" data: ").append(toIndentedString(data)).append("\n"); |
| 220 | + sb.append(" ctid: ").append(toIndentedString(ctid)).append("\n"); |
| 221 | + sb.append("}"); |
| 222 | + return sb.toString(); |
| 223 | + } |
| 224 | + |
| 225 | + /** |
| 226 | + * Convert the given object to string with each line indented by 4 spaces |
| 227 | + * (except the first line). |
| 228 | + */ |
| 229 | + private String toIndentedString(java.lang.Object o) { |
| 230 | + if (o == null) { |
| 231 | + return "null"; |
| 232 | + } |
| 233 | + return o.toString().replace("\n", "\n "); |
| 234 | + } |
| 235 | + |
| 236 | +} |
0 commit comments