com.volcengine.dns.model.UpdateRecordResponse Maven / Gradle / Ivy
/*
* dns
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: common-version
*
*
* 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 com.volcengine.dns.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.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
* UpdateRecordResponse
*/
public class UpdateRecordResponse extends com.volcengine.model.AbstractResponse {
@SerializedName("CreatedAt")
private String createdAt = null;
@SerializedName("Enable")
private Boolean enable = null;
@SerializedName("FQDN")
private String FQDN = null;
@SerializedName("Host")
private String host = null;
@SerializedName("Line")
private String line = null;
@SerializedName("Operators")
private List operators = null;
@SerializedName("PQDN")
private String PQDN = null;
@SerializedName("RecordID")
private String recordID = null;
@SerializedName("RecordSetID")
private String recordSetID = null;
@SerializedName("Remark")
private String remark = null;
@SerializedName("TTL")
private Integer TTL = null;
@SerializedName("Tags")
private List tags = null;
@SerializedName("Type")
private String type = null;
@SerializedName("UpdatedAt")
private String updatedAt = null;
@SerializedName("Value")
private String value = null;
@SerializedName("Weight")
private Integer weight = null;
public UpdateRecordResponse createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
* @return createdAt
**/
@Schema(description = "")
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public UpdateRecordResponse enable(Boolean enable) {
this.enable = enable;
return this;
}
/**
* Get enable
* @return enable
**/
@Schema(description = "")
public Boolean isEnable() {
return enable;
}
public void setEnable(Boolean enable) {
this.enable = enable;
}
public UpdateRecordResponse FQDN(String FQDN) {
this.FQDN = FQDN;
return this;
}
/**
* Get FQDN
* @return FQDN
**/
@Schema(description = "")
public String getFQDN() {
return FQDN;
}
public void setFQDN(String FQDN) {
this.FQDN = FQDN;
}
public UpdateRecordResponse host(String host) {
this.host = host;
return this;
}
/**
* Get host
* @return host
**/
@Schema(description = "")
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
public UpdateRecordResponse line(String line) {
this.line = line;
return this;
}
/**
* Get line
* @return line
**/
@Schema(description = "")
public String getLine() {
return line;
}
public void setLine(String line) {
this.line = line;
}
public UpdateRecordResponse operators(List operators) {
this.operators = operators;
return this;
}
public UpdateRecordResponse addOperatorsItem(String operatorsItem) {
if (this.operators == null) {
this.operators = new ArrayList();
}
this.operators.add(operatorsItem);
return this;
}
/**
* Get operators
* @return operators
**/
@Schema(description = "")
public List getOperators() {
return operators;
}
public void setOperators(List operators) {
this.operators = operators;
}
public UpdateRecordResponse PQDN(String PQDN) {
this.PQDN = PQDN;
return this;
}
/**
* Get PQDN
* @return PQDN
**/
@Schema(description = "")
public String getPQDN() {
return PQDN;
}
public void setPQDN(String PQDN) {
this.PQDN = PQDN;
}
public UpdateRecordResponse recordID(String recordID) {
this.recordID = recordID;
return this;
}
/**
* Get recordID
* @return recordID
**/
@Schema(description = "")
public String getRecordID() {
return recordID;
}
public void setRecordID(String recordID) {
this.recordID = recordID;
}
public UpdateRecordResponse recordSetID(String recordSetID) {
this.recordSetID = recordSetID;
return this;
}
/**
* Get recordSetID
* @return recordSetID
**/
@Schema(description = "")
public String getRecordSetID() {
return recordSetID;
}
public void setRecordSetID(String recordSetID) {
this.recordSetID = recordSetID;
}
public UpdateRecordResponse remark(String remark) {
this.remark = remark;
return this;
}
/**
* Get remark
* @return remark
**/
@Schema(description = "")
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public UpdateRecordResponse TTL(Integer TTL) {
this.TTL = TTL;
return this;
}
/**
* Get TTL
* @return TTL
**/
@Schema(description = "")
public Integer getTTL() {
return TTL;
}
public void setTTL(Integer TTL) {
this.TTL = TTL;
}
public UpdateRecordResponse tags(List tags) {
this.tags = tags;
return this;
}
public UpdateRecordResponse addTagsItem(String tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList();
}
this.tags.add(tagsItem);
return this;
}
/**
* Get tags
* @return tags
**/
@Schema(description = "")
public List getTags() {
return tags;
}
public void setTags(List tags) {
this.tags = tags;
}
public UpdateRecordResponse type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@Schema(description = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public UpdateRecordResponse updatedAt(String updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* Get updatedAt
* @return updatedAt
**/
@Schema(description = "")
public String getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(String updatedAt) {
this.updatedAt = updatedAt;
}
public UpdateRecordResponse value(String value) {
this.value = value;
return this;
}
/**
* Get value
* @return value
**/
@Schema(description = "")
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public UpdateRecordResponse weight(Integer weight) {
this.weight = weight;
return this;
}
/**
* Get weight
* @return weight
**/
@Schema(description = "")
public Integer getWeight() {
return weight;
}
public void setWeight(Integer weight) {
this.weight = weight;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdateRecordResponse updateRecordResponse = (UpdateRecordResponse) o;
return Objects.equals(this.createdAt, updateRecordResponse.createdAt) &&
Objects.equals(this.enable, updateRecordResponse.enable) &&
Objects.equals(this.FQDN, updateRecordResponse.FQDN) &&
Objects.equals(this.host, updateRecordResponse.host) &&
Objects.equals(this.line, updateRecordResponse.line) &&
Objects.equals(this.operators, updateRecordResponse.operators) &&
Objects.equals(this.PQDN, updateRecordResponse.PQDN) &&
Objects.equals(this.recordID, updateRecordResponse.recordID) &&
Objects.equals(this.recordSetID, updateRecordResponse.recordSetID) &&
Objects.equals(this.remark, updateRecordResponse.remark) &&
Objects.equals(this.TTL, updateRecordResponse.TTL) &&
Objects.equals(this.tags, updateRecordResponse.tags) &&
Objects.equals(this.type, updateRecordResponse.type) &&
Objects.equals(this.updatedAt, updateRecordResponse.updatedAt) &&
Objects.equals(this.value, updateRecordResponse.value) &&
Objects.equals(this.weight, updateRecordResponse.weight);
}
@Override
public int hashCode() {
return Objects.hash(createdAt, enable, FQDN, host, line, operators, PQDN, recordID, recordSetID, remark, TTL, tags, type, updatedAt, value, weight);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateRecordResponse {\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" enable: ").append(toIndentedString(enable)).append("\n");
sb.append(" FQDN: ").append(toIndentedString(FQDN)).append("\n");
sb.append(" host: ").append(toIndentedString(host)).append("\n");
sb.append(" line: ").append(toIndentedString(line)).append("\n");
sb.append(" operators: ").append(toIndentedString(operators)).append("\n");
sb.append(" PQDN: ").append(toIndentedString(PQDN)).append("\n");
sb.append(" recordID: ").append(toIndentedString(recordID)).append("\n");
sb.append(" recordSetID: ").append(toIndentedString(recordSetID)).append("\n");
sb.append(" remark: ").append(toIndentedString(remark)).append("\n");
sb.append(" TTL: ").append(toIndentedString(TTL)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).append("\n");
sb.append(" weight: ").append(toIndentedString(weight)).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 ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy