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

com.volcengine.dcdn.model.ConvertConvertOriginForDescribeDomainDetailOutput Maven / Gradle / Ivy

There is a newer version: 0.1.129
Show newest version
/*
 * dcdn
 * 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.dcdn.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 com.volcengine.dcdn.model.BackupOriginForDescribeDomainDetailOutput;
import com.volcengine.dcdn.model.ConditionalOriginForDescribeDomainDetailOutput;
import com.volcengine.dcdn.model.ConvertOriginForDescribeDomainDetailOutput;
import com.volcengine.dcdn.model.FollowRedirectForDescribeDomainDetailOutput;
import com.volcengine.dcdn.model.OriginHostForDescribeDomainDetailOutput;
import com.volcengine.dcdn.model.OriginRangeForDescribeDomainDetailOutput;
import com.volcengine.dcdn.model.OriginSniForDescribeDomainDetailOutput;
import com.volcengine.dcdn.model.RequestHeaderForDescribeDomainDetailOutput;
import com.volcengine.dcdn.model.ResponseHeaderForDescribeDomainDetailOutput;
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;
/**
 * ConvertConvertOriginForDescribeDomainDetailOutput
 */


public class ConvertConvertOriginForDescribeDomainDetailOutput {
  @SerializedName("BackupOriginType")
  private String backupOriginType = null;

  @SerializedName("BackupOrigins")
  private List backupOrigins = null;

  @SerializedName("ConditionalOrigins")
  private List conditionalOrigins = null;

  @SerializedName("FollowRedirect")
  private FollowRedirectForDescribeDomainDetailOutput followRedirect = null;

  @SerializedName("OriginHost")
  private OriginHostForDescribeDomainDetailOutput originHost = null;

  @SerializedName("OriginProtocolType")
  private String originProtocolType = null;

  @SerializedName("OriginRange")
  private OriginRangeForDescribeDomainDetailOutput originRange = null;

  @SerializedName("OriginSni")
  private OriginSniForDescribeDomainDetailOutput originSni = null;

  @SerializedName("OriginType")
  private String originType = null;

  @SerializedName("Origins")
  private List origins = null;

  @SerializedName("RequestHeader")
  private RequestHeaderForDescribeDomainDetailOutput requestHeader = null;

  @SerializedName("ResponseHeader")
  private ResponseHeaderForDescribeDomainDetailOutput responseHeader = null;

  @SerializedName("ResponseTimeout")
  private Integer responseTimeout = null;

  @SerializedName("TosPrivateAccess")
  private Boolean tosPrivateAccess = null;

  public ConvertConvertOriginForDescribeDomainDetailOutput backupOriginType(String backupOriginType) {
    this.backupOriginType = backupOriginType;
    return this;
  }

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

  public void setBackupOriginType(String backupOriginType) {
    this.backupOriginType = backupOriginType;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput backupOrigins(List backupOrigins) {
    this.backupOrigins = backupOrigins;
    return this;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput addBackupOriginsItem(BackupOriginForDescribeDomainDetailOutput backupOriginsItem) {
    if (this.backupOrigins == null) {
      this.backupOrigins = new ArrayList();
    }
    this.backupOrigins.add(backupOriginsItem);
    return this;
  }

   /**
   * Get backupOrigins
   * @return backupOrigins
  **/
  @Valid
  @Schema(description = "")
  public List getBackupOrigins() {
    return backupOrigins;
  }

  public void setBackupOrigins(List backupOrigins) {
    this.backupOrigins = backupOrigins;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput conditionalOrigins(List conditionalOrigins) {
    this.conditionalOrigins = conditionalOrigins;
    return this;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput addConditionalOriginsItem(ConditionalOriginForDescribeDomainDetailOutput conditionalOriginsItem) {
    if (this.conditionalOrigins == null) {
      this.conditionalOrigins = new ArrayList();
    }
    this.conditionalOrigins.add(conditionalOriginsItem);
    return this;
  }

   /**
   * Get conditionalOrigins
   * @return conditionalOrigins
  **/
  @Valid
  @Schema(description = "")
  public List getConditionalOrigins() {
    return conditionalOrigins;
  }

  public void setConditionalOrigins(List conditionalOrigins) {
    this.conditionalOrigins = conditionalOrigins;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput followRedirect(FollowRedirectForDescribeDomainDetailOutput followRedirect) {
    this.followRedirect = followRedirect;
    return this;
  }

   /**
   * Get followRedirect
   * @return followRedirect
  **/
  @Valid
  @Schema(description = "")
  public FollowRedirectForDescribeDomainDetailOutput getFollowRedirect() {
    return followRedirect;
  }

  public void setFollowRedirect(FollowRedirectForDescribeDomainDetailOutput followRedirect) {
    this.followRedirect = followRedirect;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput originHost(OriginHostForDescribeDomainDetailOutput originHost) {
    this.originHost = originHost;
    return this;
  }

   /**
   * Get originHost
   * @return originHost
  **/
  @Valid
  @Schema(description = "")
  public OriginHostForDescribeDomainDetailOutput getOriginHost() {
    return originHost;
  }

  public void setOriginHost(OriginHostForDescribeDomainDetailOutput originHost) {
    this.originHost = originHost;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput originProtocolType(String originProtocolType) {
    this.originProtocolType = originProtocolType;
    return this;
  }

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

  public void setOriginProtocolType(String originProtocolType) {
    this.originProtocolType = originProtocolType;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput originRange(OriginRangeForDescribeDomainDetailOutput originRange) {
    this.originRange = originRange;
    return this;
  }

   /**
   * Get originRange
   * @return originRange
  **/
  @Valid
  @Schema(description = "")
  public OriginRangeForDescribeDomainDetailOutput getOriginRange() {
    return originRange;
  }

  public void setOriginRange(OriginRangeForDescribeDomainDetailOutput originRange) {
    this.originRange = originRange;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput originSni(OriginSniForDescribeDomainDetailOutput originSni) {
    this.originSni = originSni;
    return this;
  }

   /**
   * Get originSni
   * @return originSni
  **/
  @Valid
  @Schema(description = "")
  public OriginSniForDescribeDomainDetailOutput getOriginSni() {
    return originSni;
  }

  public void setOriginSni(OriginSniForDescribeDomainDetailOutput originSni) {
    this.originSni = originSni;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput originType(String originType) {
    this.originType = originType;
    return this;
  }

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

  public void setOriginType(String originType) {
    this.originType = originType;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput origins(List origins) {
    this.origins = origins;
    return this;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput addOriginsItem(ConvertOriginForDescribeDomainDetailOutput originsItem) {
    if (this.origins == null) {
      this.origins = new ArrayList();
    }
    this.origins.add(originsItem);
    return this;
  }

   /**
   * Get origins
   * @return origins
  **/
  @Valid
  @Schema(description = "")
  public List getOrigins() {
    return origins;
  }

  public void setOrigins(List origins) {
    this.origins = origins;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput requestHeader(RequestHeaderForDescribeDomainDetailOutput requestHeader) {
    this.requestHeader = requestHeader;
    return this;
  }

   /**
   * Get requestHeader
   * @return requestHeader
  **/
  @Valid
  @Schema(description = "")
  public RequestHeaderForDescribeDomainDetailOutput getRequestHeader() {
    return requestHeader;
  }

  public void setRequestHeader(RequestHeaderForDescribeDomainDetailOutput requestHeader) {
    this.requestHeader = requestHeader;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput responseHeader(ResponseHeaderForDescribeDomainDetailOutput responseHeader) {
    this.responseHeader = responseHeader;
    return this;
  }

   /**
   * Get responseHeader
   * @return responseHeader
  **/
  @Valid
  @Schema(description = "")
  public ResponseHeaderForDescribeDomainDetailOutput getResponseHeader() {
    return responseHeader;
  }

  public void setResponseHeader(ResponseHeaderForDescribeDomainDetailOutput responseHeader) {
    this.responseHeader = responseHeader;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput responseTimeout(Integer responseTimeout) {
    this.responseTimeout = responseTimeout;
    return this;
  }

   /**
   * Get responseTimeout
   * @return responseTimeout
  **/
  @Schema(description = "")
  public Integer getResponseTimeout() {
    return responseTimeout;
  }

  public void setResponseTimeout(Integer responseTimeout) {
    this.responseTimeout = responseTimeout;
  }

  public ConvertConvertOriginForDescribeDomainDetailOutput tosPrivateAccess(Boolean tosPrivateAccess) {
    this.tosPrivateAccess = tosPrivateAccess;
    return this;
  }

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

  public void setTosPrivateAccess(Boolean tosPrivateAccess) {
    this.tosPrivateAccess = tosPrivateAccess;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ConvertConvertOriginForDescribeDomainDetailOutput convertConvertOriginForDescribeDomainDetailOutput = (ConvertConvertOriginForDescribeDomainDetailOutput) o;
    return Objects.equals(this.backupOriginType, convertConvertOriginForDescribeDomainDetailOutput.backupOriginType) &&
        Objects.equals(this.backupOrigins, convertConvertOriginForDescribeDomainDetailOutput.backupOrigins) &&
        Objects.equals(this.conditionalOrigins, convertConvertOriginForDescribeDomainDetailOutput.conditionalOrigins) &&
        Objects.equals(this.followRedirect, convertConvertOriginForDescribeDomainDetailOutput.followRedirect) &&
        Objects.equals(this.originHost, convertConvertOriginForDescribeDomainDetailOutput.originHost) &&
        Objects.equals(this.originProtocolType, convertConvertOriginForDescribeDomainDetailOutput.originProtocolType) &&
        Objects.equals(this.originRange, convertConvertOriginForDescribeDomainDetailOutput.originRange) &&
        Objects.equals(this.originSni, convertConvertOriginForDescribeDomainDetailOutput.originSni) &&
        Objects.equals(this.originType, convertConvertOriginForDescribeDomainDetailOutput.originType) &&
        Objects.equals(this.origins, convertConvertOriginForDescribeDomainDetailOutput.origins) &&
        Objects.equals(this.requestHeader, convertConvertOriginForDescribeDomainDetailOutput.requestHeader) &&
        Objects.equals(this.responseHeader, convertConvertOriginForDescribeDomainDetailOutput.responseHeader) &&
        Objects.equals(this.responseTimeout, convertConvertOriginForDescribeDomainDetailOutput.responseTimeout) &&
        Objects.equals(this.tosPrivateAccess, convertConvertOriginForDescribeDomainDetailOutput.tosPrivateAccess);
  }

  @Override
  public int hashCode() {
    return Objects.hash(backupOriginType, backupOrigins, conditionalOrigins, followRedirect, originHost, originProtocolType, originRange, originSni, originType, origins, requestHeader, responseHeader, responseTimeout, tosPrivateAccess);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ConvertConvertOriginForDescribeDomainDetailOutput {\n");
    
    sb.append("    backupOriginType: ").append(toIndentedString(backupOriginType)).append("\n");
    sb.append("    backupOrigins: ").append(toIndentedString(backupOrigins)).append("\n");
    sb.append("    conditionalOrigins: ").append(toIndentedString(conditionalOrigins)).append("\n");
    sb.append("    followRedirect: ").append(toIndentedString(followRedirect)).append("\n");
    sb.append("    originHost: ").append(toIndentedString(originHost)).append("\n");
    sb.append("    originProtocolType: ").append(toIndentedString(originProtocolType)).append("\n");
    sb.append("    originRange: ").append(toIndentedString(originRange)).append("\n");
    sb.append("    originSni: ").append(toIndentedString(originSni)).append("\n");
    sb.append("    originType: ").append(toIndentedString(originType)).append("\n");
    sb.append("    origins: ").append(toIndentedString(origins)).append("\n");
    sb.append("    requestHeader: ").append(toIndentedString(requestHeader)).append("\n");
    sb.append("    responseHeader: ").append(toIndentedString(responseHeader)).append("\n");
    sb.append("    responseTimeout: ").append(toIndentedString(responseTimeout)).append("\n");
    sb.append("    tosPrivateAccess: ").append(toIndentedString(tosPrivateAccess)).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