All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.volcengine.dns.model.CheckZoneResponse Maven / Gradle / Ivy

There is a newer version: 0.1.144
Show newest version
/*
 * 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;
/**
 * CheckZoneResponse
 */



public class CheckZoneResponse extends com.volcengine.model.AbstractResponse {
  @SerializedName("IsSubDomain")
  private Boolean isSubDomain = null;

  @SerializedName("Message")
  private String message = null;

  @SerializedName("NameServer")
  private List nameServer = null;

  @SerializedName("Registered")
  private Boolean registered = null;

  @SerializedName("ZoneName")
  private String zoneName = null;

  @SerializedName("ZoneOwnedByOtherUser")
  private Boolean zoneOwnedByOtherUser = null;

  public CheckZoneResponse isSubDomain(Boolean isSubDomain) {
    this.isSubDomain = isSubDomain;
    return this;
  }

   /**
   * Get isSubDomain
   * @return isSubDomain
  **/
  @Schema(description = "")
  public Boolean isIsSubDomain() {
    return isSubDomain;
  }

  public void setIsSubDomain(Boolean isSubDomain) {
    this.isSubDomain = isSubDomain;
  }

  public CheckZoneResponse message(String message) {
    this.message = message;
    return this;
  }

   /**
   * Get message
   * @return message
  **/
  @Schema(description = "")
  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public CheckZoneResponse nameServer(List nameServer) {
    this.nameServer = nameServer;
    return this;
  }

  public CheckZoneResponse addNameServerItem(String nameServerItem) {
    if (this.nameServer == null) {
      this.nameServer = new ArrayList();
    }
    this.nameServer.add(nameServerItem);
    return this;
  }

   /**
   * Get nameServer
   * @return nameServer
  **/
  @Schema(description = "")
  public List getNameServer() {
    return nameServer;
  }

  public void setNameServer(List nameServer) {
    this.nameServer = nameServer;
  }

  public CheckZoneResponse registered(Boolean registered) {
    this.registered = registered;
    return this;
  }

   /**
   * Get registered
   * @return registered
  **/
  @Schema(description = "")
  public Boolean isRegistered() {
    return registered;
  }

  public void setRegistered(Boolean registered) {
    this.registered = registered;
  }

  public CheckZoneResponse zoneName(String zoneName) {
    this.zoneName = zoneName;
    return this;
  }

   /**
   * Get zoneName
   * @return zoneName
  **/
  @Schema(description = "")
  public String getZoneName() {
    return zoneName;
  }

  public void setZoneName(String zoneName) {
    this.zoneName = zoneName;
  }

  public CheckZoneResponse zoneOwnedByOtherUser(Boolean zoneOwnedByOtherUser) {
    this.zoneOwnedByOtherUser = zoneOwnedByOtherUser;
    return this;
  }

   /**
   * Get zoneOwnedByOtherUser
   * @return zoneOwnedByOtherUser
  **/
  @Schema(description = "")
  public Boolean isZoneOwnedByOtherUser() {
    return zoneOwnedByOtherUser;
  }

  public void setZoneOwnedByOtherUser(Boolean zoneOwnedByOtherUser) {
    this.zoneOwnedByOtherUser = zoneOwnedByOtherUser;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CheckZoneResponse checkZoneResponse = (CheckZoneResponse) o;
    return Objects.equals(this.isSubDomain, checkZoneResponse.isSubDomain) &&
        Objects.equals(this.message, checkZoneResponse.message) &&
        Objects.equals(this.nameServer, checkZoneResponse.nameServer) &&
        Objects.equals(this.registered, checkZoneResponse.registered) &&
        Objects.equals(this.zoneName, checkZoneResponse.zoneName) &&
        Objects.equals(this.zoneOwnedByOtherUser, checkZoneResponse.zoneOwnedByOtherUser);
  }

  @Override
  public int hashCode() {
    return Objects.hash(isSubDomain, message, nameServer, registered, zoneName, zoneOwnedByOtherUser);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CheckZoneResponse {\n");
    
    sb.append("    isSubDomain: ").append(toIndentedString(isSubDomain)).append("\n");
    sb.append("    message: ").append(toIndentedString(message)).append("\n");
    sb.append("    nameServer: ").append(toIndentedString(nameServer)).append("\n");
    sb.append("    registered: ").append(toIndentedString(registered)).append("\n");
    sb.append("    zoneName: ").append(toIndentedString(zoneName)).append("\n");
    sb.append("    zoneOwnedByOtherUser: ").append(toIndentedString(zoneOwnedByOtherUser)).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