com.volcengine.dcdn.model.HttpsForUpdateSingleDomainConfigInput 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.CertBindForUpdateSingleDomainConfigInput;
import com.volcengine.dcdn.model.ForceRedirectForUpdateSingleDomainConfigInput;
import com.volcengine.dcdn.model.HstsForUpdateSingleDomainConfigInput;
import com.volcengine.dcdn.model.TlsVersionsForUpdateSingleDomainConfigInput;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
* HttpsForUpdateSingleDomainConfigInput
*/
public class HttpsForUpdateSingleDomainConfigInput {
@SerializedName("CertBind")
private CertBindForUpdateSingleDomainConfigInput certBind = null;
@SerializedName("ForceRedirect")
private ForceRedirectForUpdateSingleDomainConfigInput forceRedirect = null;
@SerializedName("Hsts")
private HstsForUpdateSingleDomainConfigInput hsts = null;
@SerializedName("Http2")
private Boolean http2 = null;
@SerializedName("QUICSwitch")
private Boolean quICSwitch = null;
@SerializedName("TlsVersions")
private TlsVersionsForUpdateSingleDomainConfigInput tlsVersions = null;
public HttpsForUpdateSingleDomainConfigInput certBind(CertBindForUpdateSingleDomainConfigInput certBind) {
this.certBind = certBind;
return this;
}
/**
* Get certBind
* @return certBind
**/
@Valid
@Schema(description = "")
public CertBindForUpdateSingleDomainConfigInput getCertBind() {
return certBind;
}
public void setCertBind(CertBindForUpdateSingleDomainConfigInput certBind) {
this.certBind = certBind;
}
public HttpsForUpdateSingleDomainConfigInput forceRedirect(ForceRedirectForUpdateSingleDomainConfigInput forceRedirect) {
this.forceRedirect = forceRedirect;
return this;
}
/**
* Get forceRedirect
* @return forceRedirect
**/
@Valid
@Schema(description = "")
public ForceRedirectForUpdateSingleDomainConfigInput getForceRedirect() {
return forceRedirect;
}
public void setForceRedirect(ForceRedirectForUpdateSingleDomainConfigInput forceRedirect) {
this.forceRedirect = forceRedirect;
}
public HttpsForUpdateSingleDomainConfigInput hsts(HstsForUpdateSingleDomainConfigInput hsts) {
this.hsts = hsts;
return this;
}
/**
* Get hsts
* @return hsts
**/
@Valid
@Schema(description = "")
public HstsForUpdateSingleDomainConfigInput getHsts() {
return hsts;
}
public void setHsts(HstsForUpdateSingleDomainConfigInput hsts) {
this.hsts = hsts;
}
public HttpsForUpdateSingleDomainConfigInput 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 HttpsForUpdateSingleDomainConfigInput quICSwitch(Boolean quICSwitch) {
this.quICSwitch = quICSwitch;
return this;
}
/**
* Get quICSwitch
* @return quICSwitch
**/
@Schema(description = "")
public Boolean isQuICSwitch() {
return quICSwitch;
}
public void setQuICSwitch(Boolean quICSwitch) {
this.quICSwitch = quICSwitch;
}
public HttpsForUpdateSingleDomainConfigInput tlsVersions(TlsVersionsForUpdateSingleDomainConfigInput tlsVersions) {
this.tlsVersions = tlsVersions;
return this;
}
/**
* Get tlsVersions
* @return tlsVersions
**/
@Valid
@Schema(description = "")
public TlsVersionsForUpdateSingleDomainConfigInput getTlsVersions() {
return tlsVersions;
}
public void setTlsVersions(TlsVersionsForUpdateSingleDomainConfigInput tlsVersions) {
this.tlsVersions = tlsVersions;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
HttpsForUpdateSingleDomainConfigInput httpsForUpdateSingleDomainConfigInput = (HttpsForUpdateSingleDomainConfigInput) o;
return Objects.equals(this.certBind, httpsForUpdateSingleDomainConfigInput.certBind) &&
Objects.equals(this.forceRedirect, httpsForUpdateSingleDomainConfigInput.forceRedirect) &&
Objects.equals(this.hsts, httpsForUpdateSingleDomainConfigInput.hsts) &&
Objects.equals(this.http2, httpsForUpdateSingleDomainConfigInput.http2) &&
Objects.equals(this.quICSwitch, httpsForUpdateSingleDomainConfigInput.quICSwitch) &&
Objects.equals(this.tlsVersions, httpsForUpdateSingleDomainConfigInput.tlsVersions);
}
@Override
public int hashCode() {
return Objects.hash(certBind, forceRedirect, hsts, http2, quICSwitch, tlsVersions);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class HttpsForUpdateSingleDomainConfigInput {\n");
sb.append(" certBind: ").append(toIndentedString(certBind)).append("\n");
sb.append(" forceRedirect: ").append(toIndentedString(forceRedirect)).append("\n");
sb.append(" hsts: ").append(toIndentedString(hsts)).append("\n");
sb.append(" http2: ").append(toIndentedString(http2)).append("\n");
sb.append(" quICSwitch: ").append(toIndentedString(quICSwitch)).append("\n");
sb.append(" tlsVersions: ").append(toIndentedString(tlsVersions)).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