com.volcengine.dcdn.model.ConvertConvertOriginForCreateDomainConfigsInput Maven / Gradle / Ivy
/*
* 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.BackupOriginForCreateDomainConfigsInput;
import com.volcengine.dcdn.model.ConditionalOriginForCreateDomainConfigsInput;
import com.volcengine.dcdn.model.ConvertOriginForCreateDomainConfigsInput;
import com.volcengine.dcdn.model.FollowRedirectForCreateDomainConfigsInput;
import com.volcengine.dcdn.model.OriginHostForCreateDomainConfigsInput;
import com.volcengine.dcdn.model.OriginRangeForCreateDomainConfigsInput;
import com.volcengine.dcdn.model.OriginSniForCreateDomainConfigsInput;
import com.volcengine.dcdn.model.RequestHeaderForCreateDomainConfigsInput;
import com.volcengine.dcdn.model.ResponseHeaderForCreateDomainConfigsInput;
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;
/**
* ConvertConvertOriginForCreateDomainConfigsInput
*/
public class ConvertConvertOriginForCreateDomainConfigsInput {
@SerializedName("BackupOriginType")
private String backupOriginType = null;
@SerializedName("BackupOrigins")
private List backupOrigins = null;
@SerializedName("ConditionalOrigins")
private List conditionalOrigins = null;
@SerializedName("FollowRedirect")
private FollowRedirectForCreateDomainConfigsInput followRedirect = null;
@SerializedName("OriginHost")
private OriginHostForCreateDomainConfigsInput originHost = null;
@SerializedName("OriginProtocolType")
private String originProtocolType = null;
@SerializedName("OriginRange")
private OriginRangeForCreateDomainConfigsInput originRange = null;
@SerializedName("OriginSni")
private OriginSniForCreateDomainConfigsInput originSni = null;
@SerializedName("OriginType")
private String originType = null;
@SerializedName("Origins")
private List origins = null;
@SerializedName("RequestHeader")
private RequestHeaderForCreateDomainConfigsInput requestHeader = null;
@SerializedName("ResponseHeader")
private ResponseHeaderForCreateDomainConfigsInput responseHeader = null;
@SerializedName("ResponseTimeout")
private Integer responseTimeout = null;
@SerializedName("TosPrivateAccess")
private Boolean tosPrivateAccess = null;
public ConvertConvertOriginForCreateDomainConfigsInput 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 ConvertConvertOriginForCreateDomainConfigsInput backupOrigins(List backupOrigins) {
this.backupOrigins = backupOrigins;
return this;
}
public ConvertConvertOriginForCreateDomainConfigsInput addBackupOriginsItem(BackupOriginForCreateDomainConfigsInput 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 ConvertConvertOriginForCreateDomainConfigsInput conditionalOrigins(List conditionalOrigins) {
this.conditionalOrigins = conditionalOrigins;
return this;
}
public ConvertConvertOriginForCreateDomainConfigsInput addConditionalOriginsItem(ConditionalOriginForCreateDomainConfigsInput 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 ConvertConvertOriginForCreateDomainConfigsInput followRedirect(FollowRedirectForCreateDomainConfigsInput followRedirect) {
this.followRedirect = followRedirect;
return this;
}
/**
* Get followRedirect
* @return followRedirect
**/
@Valid
@Schema(description = "")
public FollowRedirectForCreateDomainConfigsInput getFollowRedirect() {
return followRedirect;
}
public void setFollowRedirect(FollowRedirectForCreateDomainConfigsInput followRedirect) {
this.followRedirect = followRedirect;
}
public ConvertConvertOriginForCreateDomainConfigsInput originHost(OriginHostForCreateDomainConfigsInput originHost) {
this.originHost = originHost;
return this;
}
/**
* Get originHost
* @return originHost
**/
@Valid
@Schema(description = "")
public OriginHostForCreateDomainConfigsInput getOriginHost() {
return originHost;
}
public void setOriginHost(OriginHostForCreateDomainConfigsInput originHost) {
this.originHost = originHost;
}
public ConvertConvertOriginForCreateDomainConfigsInput 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 ConvertConvertOriginForCreateDomainConfigsInput originRange(OriginRangeForCreateDomainConfigsInput originRange) {
this.originRange = originRange;
return this;
}
/**
* Get originRange
* @return originRange
**/
@Valid
@Schema(description = "")
public OriginRangeForCreateDomainConfigsInput getOriginRange() {
return originRange;
}
public void setOriginRange(OriginRangeForCreateDomainConfigsInput originRange) {
this.originRange = originRange;
}
public ConvertConvertOriginForCreateDomainConfigsInput originSni(OriginSniForCreateDomainConfigsInput originSni) {
this.originSni = originSni;
return this;
}
/**
* Get originSni
* @return originSni
**/
@Valid
@Schema(description = "")
public OriginSniForCreateDomainConfigsInput getOriginSni() {
return originSni;
}
public void setOriginSni(OriginSniForCreateDomainConfigsInput originSni) {
this.originSni = originSni;
}
public ConvertConvertOriginForCreateDomainConfigsInput 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 ConvertConvertOriginForCreateDomainConfigsInput origins(List origins) {
this.origins = origins;
return this;
}
public ConvertConvertOriginForCreateDomainConfigsInput addOriginsItem(ConvertOriginForCreateDomainConfigsInput 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 ConvertConvertOriginForCreateDomainConfigsInput requestHeader(RequestHeaderForCreateDomainConfigsInput requestHeader) {
this.requestHeader = requestHeader;
return this;
}
/**
* Get requestHeader
* @return requestHeader
**/
@Valid
@Schema(description = "")
public RequestHeaderForCreateDomainConfigsInput getRequestHeader() {
return requestHeader;
}
public void setRequestHeader(RequestHeaderForCreateDomainConfigsInput requestHeader) {
this.requestHeader = requestHeader;
}
public ConvertConvertOriginForCreateDomainConfigsInput responseHeader(ResponseHeaderForCreateDomainConfigsInput responseHeader) {
this.responseHeader = responseHeader;
return this;
}
/**
* Get responseHeader
* @return responseHeader
**/
@Valid
@Schema(description = "")
public ResponseHeaderForCreateDomainConfigsInput getResponseHeader() {
return responseHeader;
}
public void setResponseHeader(ResponseHeaderForCreateDomainConfigsInput responseHeader) {
this.responseHeader = responseHeader;
}
public ConvertConvertOriginForCreateDomainConfigsInput 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 ConvertConvertOriginForCreateDomainConfigsInput 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;
}
ConvertConvertOriginForCreateDomainConfigsInput convertConvertOriginForCreateDomainConfigsInput = (ConvertConvertOriginForCreateDomainConfigsInput) o;
return Objects.equals(this.backupOriginType, convertConvertOriginForCreateDomainConfigsInput.backupOriginType) &&
Objects.equals(this.backupOrigins, convertConvertOriginForCreateDomainConfigsInput.backupOrigins) &&
Objects.equals(this.conditionalOrigins, convertConvertOriginForCreateDomainConfigsInput.conditionalOrigins) &&
Objects.equals(this.followRedirect, convertConvertOriginForCreateDomainConfigsInput.followRedirect) &&
Objects.equals(this.originHost, convertConvertOriginForCreateDomainConfigsInput.originHost) &&
Objects.equals(this.originProtocolType, convertConvertOriginForCreateDomainConfigsInput.originProtocolType) &&
Objects.equals(this.originRange, convertConvertOriginForCreateDomainConfigsInput.originRange) &&
Objects.equals(this.originSni, convertConvertOriginForCreateDomainConfigsInput.originSni) &&
Objects.equals(this.originType, convertConvertOriginForCreateDomainConfigsInput.originType) &&
Objects.equals(this.origins, convertConvertOriginForCreateDomainConfigsInput.origins) &&
Objects.equals(this.requestHeader, convertConvertOriginForCreateDomainConfigsInput.requestHeader) &&
Objects.equals(this.responseHeader, convertConvertOriginForCreateDomainConfigsInput.responseHeader) &&
Objects.equals(this.responseTimeout, convertConvertOriginForCreateDomainConfigsInput.responseTimeout) &&
Objects.equals(this.tosPrivateAccess, convertConvertOriginForCreateDomainConfigsInput.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 ConvertConvertOriginForCreateDomainConfigsInput {\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 ");
}
}