com.volcengine.cdn.model.HTTPSForAddCdnDomainInput Maven / Gradle / Ivy
/*
* cdn
* 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.cdn.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.cdn.model.CertCheckForAddCdnDomainInput;
import com.volcengine.cdn.model.CertInfoForAddCdnDomainInput;
import com.volcengine.cdn.model.CertInfoListForAddCdnDomainInput;
import com.volcengine.cdn.model.ForcedRedirectForAddCdnDomainInput;
import com.volcengine.cdn.model.HstsForAddCdnDomainInput;
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;
/**
* HTTPSForAddCdnDomainInput
*/
public class HTTPSForAddCdnDomainInput {
@SerializedName("CertCheck")
private CertCheckForAddCdnDomainInput certCheck = null;
@SerializedName("CertInfo")
private CertInfoForAddCdnDomainInput certInfo = null;
@SerializedName("CertInfoList")
private List certInfoList = null;
@SerializedName("DisableHttp")
private Boolean disableHttp = null;
@SerializedName("ForcedRedirect")
private ForcedRedirectForAddCdnDomainInput forcedRedirect = null;
@SerializedName("HTTP2")
private Boolean htTP2 = null;
@SerializedName("Hsts")
private HstsForAddCdnDomainInput hsts = null;
@SerializedName("OCSP")
private Boolean OCSP = null;
@SerializedName("Switch")
private Boolean _switch = null;
@SerializedName("TlsVersion")
private List tlsVersion = null;
public HTTPSForAddCdnDomainInput certCheck(CertCheckForAddCdnDomainInput certCheck) {
this.certCheck = certCheck;
return this;
}
/**
* Get certCheck
* @return certCheck
**/
@Valid
@Schema(description = "")
public CertCheckForAddCdnDomainInput getCertCheck() {
return certCheck;
}
public void setCertCheck(CertCheckForAddCdnDomainInput certCheck) {
this.certCheck = certCheck;
}
public HTTPSForAddCdnDomainInput certInfo(CertInfoForAddCdnDomainInput certInfo) {
this.certInfo = certInfo;
return this;
}
/**
* Get certInfo
* @return certInfo
**/
@Valid
@Schema(description = "")
public CertInfoForAddCdnDomainInput getCertInfo() {
return certInfo;
}
public void setCertInfo(CertInfoForAddCdnDomainInput certInfo) {
this.certInfo = certInfo;
}
public HTTPSForAddCdnDomainInput certInfoList(List certInfoList) {
this.certInfoList = certInfoList;
return this;
}
public HTTPSForAddCdnDomainInput addCertInfoListItem(CertInfoListForAddCdnDomainInput certInfoListItem) {
if (this.certInfoList == null) {
this.certInfoList = new ArrayList();
}
this.certInfoList.add(certInfoListItem);
return this;
}
/**
* Get certInfoList
* @return certInfoList
**/
@Valid
@Schema(description = "")
public List getCertInfoList() {
return certInfoList;
}
public void setCertInfoList(List certInfoList) {
this.certInfoList = certInfoList;
}
public HTTPSForAddCdnDomainInput disableHttp(Boolean disableHttp) {
this.disableHttp = disableHttp;
return this;
}
/**
* Get disableHttp
* @return disableHttp
**/
@Schema(description = "")
public Boolean isDisableHttp() {
return disableHttp;
}
public void setDisableHttp(Boolean disableHttp) {
this.disableHttp = disableHttp;
}
public HTTPSForAddCdnDomainInput forcedRedirect(ForcedRedirectForAddCdnDomainInput forcedRedirect) {
this.forcedRedirect = forcedRedirect;
return this;
}
/**
* Get forcedRedirect
* @return forcedRedirect
**/
@Valid
@Schema(description = "")
public ForcedRedirectForAddCdnDomainInput getForcedRedirect() {
return forcedRedirect;
}
public void setForcedRedirect(ForcedRedirectForAddCdnDomainInput forcedRedirect) {
this.forcedRedirect = forcedRedirect;
}
public HTTPSForAddCdnDomainInput htTP2(Boolean htTP2) {
this.htTP2 = htTP2;
return this;
}
/**
* Get htTP2
* @return htTP2
**/
@Schema(description = "")
public Boolean isHtTP2() {
return htTP2;
}
public void setHtTP2(Boolean htTP2) {
this.htTP2 = htTP2;
}
public HTTPSForAddCdnDomainInput hsts(HstsForAddCdnDomainInput hsts) {
this.hsts = hsts;
return this;
}
/**
* Get hsts
* @return hsts
**/
@Valid
@Schema(description = "")
public HstsForAddCdnDomainInput getHsts() {
return hsts;
}
public void setHsts(HstsForAddCdnDomainInput hsts) {
this.hsts = hsts;
}
public HTTPSForAddCdnDomainInput OCSP(Boolean OCSP) {
this.OCSP = OCSP;
return this;
}
/**
* Get OCSP
* @return OCSP
**/
@Schema(description = "")
public Boolean isOCSP() {
return OCSP;
}
public void setOCSP(Boolean OCSP) {
this.OCSP = OCSP;
}
public HTTPSForAddCdnDomainInput _switch(Boolean _switch) {
this._switch = _switch;
return this;
}
/**
* Get _switch
* @return _switch
**/
@Schema(description = "")
public Boolean isSwitch() {
return _switch;
}
public void setSwitch(Boolean _switch) {
this._switch = _switch;
}
public HTTPSForAddCdnDomainInput tlsVersion(List tlsVersion) {
this.tlsVersion = tlsVersion;
return this;
}
public HTTPSForAddCdnDomainInput addTlsVersionItem(String tlsVersionItem) {
if (this.tlsVersion == null) {
this.tlsVersion = new ArrayList();
}
this.tlsVersion.add(tlsVersionItem);
return this;
}
/**
* Get tlsVersion
* @return tlsVersion
**/
@Schema(description = "")
public List getTlsVersion() {
return tlsVersion;
}
public void setTlsVersion(List tlsVersion) {
this.tlsVersion = tlsVersion;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
HTTPSForAddCdnDomainInput htTPSForAddCdnDomainInput = (HTTPSForAddCdnDomainInput) o;
return Objects.equals(this.certCheck, htTPSForAddCdnDomainInput.certCheck) &&
Objects.equals(this.certInfo, htTPSForAddCdnDomainInput.certInfo) &&
Objects.equals(this.certInfoList, htTPSForAddCdnDomainInput.certInfoList) &&
Objects.equals(this.disableHttp, htTPSForAddCdnDomainInput.disableHttp) &&
Objects.equals(this.forcedRedirect, htTPSForAddCdnDomainInput.forcedRedirect) &&
Objects.equals(this.htTP2, htTPSForAddCdnDomainInput.htTP2) &&
Objects.equals(this.hsts, htTPSForAddCdnDomainInput.hsts) &&
Objects.equals(this.OCSP, htTPSForAddCdnDomainInput.OCSP) &&
Objects.equals(this._switch, htTPSForAddCdnDomainInput._switch) &&
Objects.equals(this.tlsVersion, htTPSForAddCdnDomainInput.tlsVersion);
}
@Override
public int hashCode() {
return Objects.hash(certCheck, certInfo, certInfoList, disableHttp, forcedRedirect, htTP2, hsts, OCSP, _switch, tlsVersion);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class HTTPSForAddCdnDomainInput {\n");
sb.append(" certCheck: ").append(toIndentedString(certCheck)).append("\n");
sb.append(" certInfo: ").append(toIndentedString(certInfo)).append("\n");
sb.append(" certInfoList: ").append(toIndentedString(certInfoList)).append("\n");
sb.append(" disableHttp: ").append(toIndentedString(disableHttp)).append("\n");
sb.append(" forcedRedirect: ").append(toIndentedString(forcedRedirect)).append("\n");
sb.append(" htTP2: ").append(toIndentedString(htTP2)).append("\n");
sb.append(" hsts: ").append(toIndentedString(hsts)).append("\n");
sb.append(" OCSP: ").append(toIndentedString(OCSP)).append("\n");
sb.append(" _switch: ").append(toIndentedString(_switch)).append("\n");
sb.append(" tlsVersion: ").append(toIndentedString(tlsVersion)).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