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

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

There is a newer version: 0.1.144
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.BackupOriginForListDomainConfigOutput;
import com.volcengine.dcdn.model.ConditionalOriginForListDomainConfigOutput;
import com.volcengine.dcdn.model.ConvertOriginForListDomainConfigOutput;
import com.volcengine.dcdn.model.FollowRedirectForListDomainConfigOutput;
import com.volcengine.dcdn.model.OriginHostForListDomainConfigOutput;
import com.volcengine.dcdn.model.OriginRangeForListDomainConfigOutput;
import com.volcengine.dcdn.model.OriginSniForListDomainConfigOutput;
import com.volcengine.dcdn.model.RequestHeaderForListDomainConfigOutput;
import com.volcengine.dcdn.model.ResponseHeaderForListDomainConfigOutput;
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;
/**
 * ConvertConvertOriginForListDomainConfigOutput
 */


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

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

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

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

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

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

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

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

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

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

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

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

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

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

  public ConvertConvertOriginForListDomainConfigOutput 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 ConvertConvertOriginForListDomainConfigOutput backupOrigins(List backupOrigins) {
    this.backupOrigins = backupOrigins;
    return this;
  }

  public ConvertConvertOriginForListDomainConfigOutput addBackupOriginsItem(BackupOriginForListDomainConfigOutput 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 ConvertConvertOriginForListDomainConfigOutput conditionalOrigins(List conditionalOrigins) {
    this.conditionalOrigins = conditionalOrigins;
    return this;
  }

  public ConvertConvertOriginForListDomainConfigOutput addConditionalOriginsItem(ConditionalOriginForListDomainConfigOutput 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 ConvertConvertOriginForListDomainConfigOutput followRedirect(FollowRedirectForListDomainConfigOutput followRedirect) {
    this.followRedirect = followRedirect;
    return this;
  }

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

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

  public ConvertConvertOriginForListDomainConfigOutput originHost(OriginHostForListDomainConfigOutput originHost) {
    this.originHost = originHost;
    return this;
  }

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

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

  public ConvertConvertOriginForListDomainConfigOutput 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 ConvertConvertOriginForListDomainConfigOutput originRange(OriginRangeForListDomainConfigOutput originRange) {
    this.originRange = originRange;
    return this;
  }

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

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

  public ConvertConvertOriginForListDomainConfigOutput originSni(OriginSniForListDomainConfigOutput originSni) {
    this.originSni = originSni;
    return this;
  }

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

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

  public ConvertConvertOriginForListDomainConfigOutput 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 ConvertConvertOriginForListDomainConfigOutput origins(List origins) {
    this.origins = origins;
    return this;
  }

  public ConvertConvertOriginForListDomainConfigOutput addOriginsItem(ConvertOriginForListDomainConfigOutput 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 ConvertConvertOriginForListDomainConfigOutput requestHeader(RequestHeaderForListDomainConfigOutput requestHeader) {
    this.requestHeader = requestHeader;
    return this;
  }

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

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

  public ConvertConvertOriginForListDomainConfigOutput responseHeader(ResponseHeaderForListDomainConfigOutput responseHeader) {
    this.responseHeader = responseHeader;
    return this;
  }

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

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

  public ConvertConvertOriginForListDomainConfigOutput 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 ConvertConvertOriginForListDomainConfigOutput 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;
    }
    ConvertConvertOriginForListDomainConfigOutput convertConvertOriginForListDomainConfigOutput = (ConvertConvertOriginForListDomainConfigOutput) o;
    return Objects.equals(this.backupOriginType, convertConvertOriginForListDomainConfigOutput.backupOriginType) &&
        Objects.equals(this.backupOrigins, convertConvertOriginForListDomainConfigOutput.backupOrigins) &&
        Objects.equals(this.conditionalOrigins, convertConvertOriginForListDomainConfigOutput.conditionalOrigins) &&
        Objects.equals(this.followRedirect, convertConvertOriginForListDomainConfigOutput.followRedirect) &&
        Objects.equals(this.originHost, convertConvertOriginForListDomainConfigOutput.originHost) &&
        Objects.equals(this.originProtocolType, convertConvertOriginForListDomainConfigOutput.originProtocolType) &&
        Objects.equals(this.originRange, convertConvertOriginForListDomainConfigOutput.originRange) &&
        Objects.equals(this.originSni, convertConvertOriginForListDomainConfigOutput.originSni) &&
        Objects.equals(this.originType, convertConvertOriginForListDomainConfigOutput.originType) &&
        Objects.equals(this.origins, convertConvertOriginForListDomainConfigOutput.origins) &&
        Objects.equals(this.requestHeader, convertConvertOriginForListDomainConfigOutput.requestHeader) &&
        Objects.equals(this.responseHeader, convertConvertOriginForListDomainConfigOutput.responseHeader) &&
        Objects.equals(this.responseTimeout, convertConvertOriginForListDomainConfigOutput.responseTimeout) &&
        Objects.equals(this.tosPrivateAccess, convertConvertOriginForListDomainConfigOutput.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 ConvertConvertOriginForListDomainConfigOutput {\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