com.volcengine.model.imagex.v2.UpdateHttpsBodyHttps Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
package com.volcengine.model.imagex.v2;
import com.alibaba.fastjson.JSON;
import java.util.List;
/**
* UpdateHttpsBodyHttps
*/
@lombok.Data
public final class UpdateHttpsBodyHttps {
/**
* 是否开启 http2,取值如下所示:
*
*
*
* - `true`:开启
*
* - `false`:关闭
*/
@com.alibaba.fastjson.annotation.JSONField(name = "enable_http2")
private Boolean enableHttp2;
/**
* 是否开启 https,取值如下所示:
*
*
*
* - `true`:开启
*
* - `false`:关闭
*/
@com.alibaba.fastjson.annotation.JSONField(name = "enable_https")
private Boolean enableHttps;
/**
* 是否开启 ocsp 装订,取值如下所示:
*
*
*
* - `true`:开启
*
* - `false`:关闭
*/
@com.alibaba.fastjson.annotation.JSONField(name = "enable_ocsp")
private Boolean enableOcsp;
/**
* 是否开启 quic 协议支持,取值如下所示:
*
*
*
* - `true`:开启
*
* - `false`:关闭
*/
@com.alibaba.fastjson.annotation.JSONField(name = "enable_quic")
private Boolean enableQuic;
/**
* 支持的 tls 版本,取值如下所示:
*
* - `tlsv1.0`
*
* - `tlsv1.1`
*
* - `tlsv1.2`
*
* - `tlsv1.3 `
*/
@com.alibaba.fastjson.annotation.JSONField(name = "tls_versions")
private List tlsVersions;
/**
* 需要关联的证书 ID,若`enable_https`为`true`,则为必填。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "cert_id")
private String certId;
/**
* 是否开启强制跳转,支持取值如下所示:
*
*
*
* - `true`:开启
*
* - `false`:关闭
*/
@com.alibaba.fastjson.annotation.JSONField(name = "enable_force_redirect")
private Boolean enableForceRedirect;
/**
* 强制跳转类型,取值如下所示:
*
*
*
* - `http2https`:HTTP 到 HTTPS
*
* - `https2http`:HTTPS 到 HTTP
*
* :::tip
*
* 仅当`enable_force_redirect`取值为`true`时需要配置。
*
* :::
*/
@com.alibaba.fastjson.annotation.JSONField(name = "force_redirect_type")
private String forceRedirectType;
/**
* 强制跳转状态码,取值如下所示:
*
*
*
* - `301`:返回给用户 301 状态码进行重定向。
*
* - `302`:返回给用户 302 状态码进行重定向。
*
* :::tip
*
* 仅当`enable_force_redirect`取值为`true`时需要配置。
*
* :::
*/
@com.alibaba.fastjson.annotation.JSONField(name = "force_redirect_code")
private String forceRedirectCode;
/**
* 配置hsts
*/
@com.alibaba.fastjson.annotation.JSONField(name = "hsts")
private UpdateHttpsBodyHttpsHsts hsts;
@Override
public String toString() {
return JSON.toJSONString(this);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy