public class ModifySpartaProtectionRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifySpartaProtectionRequest() |
ModifySpartaProtectionRequest(ModifySpartaProtectionRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getActiveCheck()
Get Whether to enable proactive health detection.
|
Long |
getAnycast()
Get To be deprecated.
|
String |
getCert()
Get When CertType is 1, this parameter is required, indicating the self-owned certificate chain
|
Long |
getCertType()
Get Certificate type.
|
Long[] |
getCiphers()
Get Cipher suite information
|
Long |
getCipherTemplate()
Get Cipher suite template.
|
String |
getDomain()
Get Domain name
|
String |
getDomainId()
Get Required.
|
String |
getEdition()
Get Instance type of the domain name
|
Long |
getHttpsRewrite()
Get Whether to enable forced redirection from HTTP to HTTPS.
|
String |
getHttpsUpstreamPort()
Get HTTPS upstream port, required only when UpstreamScheme is http
|
String |
getInstanceID()
Get Required.
|
String[] |
getIpHeaders()
Get IsCdn=3 required for this parameter, indicates custom header
|
Long |
getIsCdn()
Get Whether a layer-7 proxy service is deployed before the WAF.
|
Long |
getIsGray()
Get To be deprecated, can be left blank.
|
Long |
getIsHttp2()
Get Whether to enable HTTP2.
|
String |
getIsKeepAlive()
Get Whether to enable persistent connection.
|
Long |
getIsWebsocket()
Get Whether to enable WebSocket.
|
Long |
getLoadBalance()
Get Load balancing policy for upstream.
|
String |
getNote()
Get Domain name remarks
|
SpartaProtectionPort[] |
getPorts()
Get Port information, which can be obtained through the DescribeDomains API
|
String |
getPrivateKey()
Get When CertType=1, this parameter is required, indicating the private key of the self-owned certificate.
|
Long |
getProbeStatus()
Get 0: Disable probe test; 1: Enable probe test.
|
Long |
getProxyBuffer()
Get Whether to enable caching.
|
Long |
getProxyReadTimeout()
Get Read timeout between WAF and upstream server, 300s by default.
|
Long |
getProxySendTimeout()
Get WAF and origin server write timeout, 300s by default.
|
String |
getSniHost()
Get When SniType=3, this parameter is required, indicating a custom SNI;
|
Long |
getSniType()
Get SNI type when proxy to upstream.
|
String[] |
getSrcList()
Get Upstream IP list when proxy to upstream by IP.
|
String |
getSSLId()
Get When CertType is 2, this parameter must be filled, indicating the certificate ID hosted on Tencent Cloud's SSL platform
|
Long |
getTLSVersion()
Get TLS version information
|
String |
getUpstreamDomain()
Get Upstream domain when proxy to upstream by domain.
|
String |
getUpstreamHost()
Get Custom upstream host.
|
String |
getUpstreamScheme()
Get Origin-pull protocol for HTTPS when the service is configured with an HTTPS port.
|
Long |
getUpstreamType()
Get upstream type.
|
Long[] |
getWeights()
Get Weight of each IP in the upstream IP List, corresponding to SrcList.
|
Long |
getXFFReset()
Get Whether to enable XFF reset.
|
void |
setActiveCheck(Long ActiveCheck)
Set Whether to enable proactive health detection.
|
void |
setAnycast(Long Anycast)
Set To be deprecated.
|
void |
setCert(String Cert)
Set When CertType is 1, this parameter is required, indicating the self-owned certificate chain
|
void |
setCertType(Long CertType)
Set Certificate type.
|
void |
setCiphers(Long[] Ciphers)
Set Cipher suite information
|
void |
setCipherTemplate(Long CipherTemplate)
Set Cipher suite template.
|
void |
setDomain(String Domain)
Set Domain name
|
void |
setDomainId(String DomainId)
Set Required.
|
void |
setEdition(String Edition)
Set Instance type of the domain name
|
void |
setHttpsRewrite(Long HttpsRewrite)
Set Whether to enable forced redirection from HTTP to HTTPS.
|
void |
setHttpsUpstreamPort(String HttpsUpstreamPort)
Set HTTPS upstream port, required only when UpstreamScheme is http
|
void |
setInstanceID(String InstanceID)
Set Required.
|
void |
setIpHeaders(String[] IpHeaders)
Set IsCdn=3 required for this parameter, indicates custom header
|
void |
setIsCdn(Long IsCdn)
Set Whether a layer-7 proxy service is deployed before the WAF.
|
void |
setIsGray(Long IsGray)
Set To be deprecated, can be left blank.
|
void |
setIsHttp2(Long IsHttp2)
Set Whether to enable HTTP2.
|
void |
setIsKeepAlive(String IsKeepAlive)
Set Whether to enable persistent connection.
|
void |
setIsWebsocket(Long IsWebsocket)
Set Whether to enable WebSocket.
|
void |
setLoadBalance(Long LoadBalance)
Set Load balancing policy for upstream.
|
void |
setNote(String Note)
Set Domain name remarks
|
void |
setPorts(SpartaProtectionPort[] Ports)
Set Port information, which can be obtained through the DescribeDomains API
|
void |
setPrivateKey(String PrivateKey)
Set When CertType=1, this parameter is required, indicating the private key of the self-owned certificate.
|
void |
setProbeStatus(Long ProbeStatus)
Set 0: Disable probe test; 1: Enable probe test.
|
void |
setProxyBuffer(Long ProxyBuffer)
Set Whether to enable caching.
|
void |
setProxyReadTimeout(Long ProxyReadTimeout)
Set Read timeout between WAF and upstream server, 300s by default.
|
void |
setProxySendTimeout(Long ProxySendTimeout)
Set WAF and origin server write timeout, 300s by default.
|
void |
setSniHost(String SniHost)
Set When SniType=3, this parameter is required, indicating a custom SNI;
|
void |
setSniType(Long SniType)
Set SNI type when proxy to upstream.
|
void |
setSrcList(String[] SrcList)
Set Upstream IP list when proxy to upstream by IP.
|
void |
setSSLId(String SSLId)
Set When CertType is 2, this parameter must be filled, indicating the certificate ID hosted on Tencent Cloud's SSL platform
|
void |
setTLSVersion(Long TLSVersion)
Set TLS version information
|
void |
setUpstreamDomain(String UpstreamDomain)
Set Upstream domain when proxy to upstream by domain.
|
void |
setUpstreamHost(String UpstreamHost)
Set Custom upstream host.
|
void |
setUpstreamScheme(String UpstreamScheme)
Set Origin-pull protocol for HTTPS when the service is configured with an HTTPS port.
|
void |
setUpstreamType(Long UpstreamType)
Set upstream type.
|
void |
setWeights(Long[] Weights)
Set Weight of each IP in the upstream IP List, corresponding to SrcList.
|
void |
setXFFReset(Long XFFReset)
Set Whether to enable XFF reset.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ModifySpartaProtectionRequest()
public ModifySpartaProtectionRequest(ModifySpartaProtectionRequest source)
public String getDomain()
public void setDomain(String Domain)
Domain
- Domain namepublic String getDomainId()
public void setDomainId(String DomainId)
DomainId
- Required. Unique domain name IDpublic String getInstanceID()
public void setInstanceID(String InstanceID)
InstanceID
- Required. Instance ID of the domain namepublic Long getCertType()
public void setCertType(Long CertType)
CertType
- Certificate type. 0: no certificate, with only the HTTP listening port configured; 1: self-owned certificate; 2: managed certificate.public String getCert()
public void setCert(String Cert)
Cert
- When CertType is 1, this parameter is required, indicating the self-owned certificate chainpublic String getPrivateKey()
public void setPrivateKey(String PrivateKey)
PrivateKey
- When CertType=1, this parameter is required, indicating the private key of the self-owned certificate.public String getSSLId()
public void setSSLId(String SSLId)
SSLId
- When CertType is 2, this parameter must be filled, indicating the certificate ID hosted on Tencent Cloud's SSL platformpublic Long getIsCdn()
public void setIsCdn(Long IsCdn)
IsCdn
- Whether a layer-7 proxy service is deployed before the WAF. 0: No proxy service is deployed; 1: The proxy service is deployed. The WAF will use XFF to obtain the client IP address; 2: The proxy service is deployed. The WAF will use remote_addr to obtain the client IP address; 3: The proxy service is deployed. The WAF will use a custom header in ip_headers to obtain the client IP address.public String getUpstreamScheme()
public void setUpstreamScheme(String UpstreamScheme)
UpstreamScheme
- Origin-pull protocol for HTTPS when the service is configured with an HTTPS port.
http: Use the HTTP protocol for origin-pull. It is used with HttpsUpstreamPort.
https: Use the HTTPS protocol for origin-pull.public String getHttpsUpstreamPort()
public void setHttpsUpstreamPort(String HttpsUpstreamPort)
HttpsUpstreamPort
- HTTPS upstream port, required only when UpstreamScheme is httppublic Long getHttpsRewrite()
public void setHttpsRewrite(Long HttpsRewrite)
HttpsRewrite
- Whether to enable forced redirection from HTTP to HTTPS. 0: disable; 1: enablepublic Long getUpstreamType()
public void setUpstreamType(Long UpstreamType)
UpstreamType
- upstream type. 0: proxy to upstream by IP; 1: proxy to upstream by domain namepublic String getUpstreamDomain()
public void setUpstreamDomain(String UpstreamDomain)
UpstreamDomain
- Upstream domain when proxy to upstream by domain. When UpstreamType=1, this field needs to be filledpublic String[] getSrcList()
public void setSrcList(String[] SrcList)
SrcList
- Upstream IP list when proxy to upstream by IP. When UpstreamType=0, this field is requiredpublic Long getIsHttp2()
public void setIsHttp2(Long IsHttp2)
IsHttp2
- Whether to enable HTTP2. You should enable HTTPS as well. 0: disable; 1: enablepublic Long getIsWebsocket()
public void setIsWebsocket(Long IsWebsocket)
IsWebsocket
- Whether to enable WebSocket. 0: disable; 1: enablepublic Long getLoadBalance()
public void setLoadBalance(Long LoadBalance)
LoadBalance
- Load balancing policy for upstream. 0: round-robin scheduling; 1: IP hash; 2: weighted round-robin schedulingpublic Long getIsGray()
public void setIsGray(Long IsGray)
IsGray
- To be deprecated, can be left blank. Whether to enable grayscale: 0 indicates not to enable grayscale.public String getEdition()
public void setEdition(String Edition)
Edition
- Instance type of the domain namepublic SpartaProtectionPort[] getPorts()
public void setPorts(SpartaProtectionPort[] Ports)
Ports
- Port information, which can be obtained through the DescribeDomains APIpublic String getIsKeepAlive()
public void setIsKeepAlive(String IsKeepAlive)
IsKeepAlive
- Whether to enable persistent connection. 0: non-persistent connection; 1: persistent connectionpublic Long getAnycast()
public void setAnycast(Long Anycast)
Anycast
- To be deprecated. Currently, set this parameter to 0. Anycast IP type switch. 0: common IP; 1: Anycast IPpublic Long[] getWeights()
public void setWeights(Long[] Weights)
Weights
- Weight of each IP in the upstream IP List, corresponding to SrcList. Required only when UpstreamType is 0, and SrcList contains multiple IPs, and LoadBalance is 2; otherwise, fill in [ ].public Long getActiveCheck()
public void setActiveCheck(Long ActiveCheck)
ActiveCheck
- Whether to enable proactive health detection. 0: disable; 1: enablepublic Long getTLSVersion()
public void setTLSVersion(Long TLSVersion)
TLSVersion
- TLS version informationpublic Long[] getCiphers()
public void setCiphers(Long[] Ciphers)
Ciphers
- Cipher suite informationpublic Long getCipherTemplate()
public void setCipherTemplate(Long CipherTemplate)
CipherTemplate
- Cipher suite template. 0: default template (no selection); 1: general template; 2: secure template; 3: custom templatepublic Long getProxyReadTimeout()
public void setProxyReadTimeout(Long ProxyReadTimeout)
ProxyReadTimeout
- Read timeout between WAF and upstream server, 300s by default.public Long getProxySendTimeout()
public void setProxySendTimeout(Long ProxySendTimeout)
ProxySendTimeout
- WAF and origin server write timeout, 300s by default.public Long getSniType()
public void setSniType(Long SniType)
SniType
- SNI type when proxy to upstream.
0: Disable SNI and do not configure server_name in client_hello.
1: Enable SNI. server_name in client_hello is the protected domain name.
2: Enable SNI. SNI is the origin server domain name when proxy to upstream by domain.
3: Enable SNI. SNI is the custom domain name.public String getSniHost()
public void setSniHost(String SniHost)
SniHost
- When SniType=3, this parameter is required, indicating a custom SNI;public String[] getIpHeaders()
public void setIpHeaders(String[] IpHeaders)
IpHeaders
- IsCdn=3 required for this parameter, indicates custom headerpublic Long getXFFReset()
public void setXFFReset(Long XFFReset)
XFFReset
- Whether to enable XFF reset. 0: disable; 1: enablepublic String getNote()
public void setNote(String Note)
Note
- Domain name remarkspublic String getUpstreamHost()
public void setUpstreamHost(String UpstreamHost)
UpstreamHost
- Custom upstream host. The default value is a null string, indicating that the protected domain name is used as the upstream host.public Long getProxyBuffer()
public void setProxyBuffer(Long ProxyBuffer)
ProxyBuffer
- Whether to enable caching. 0: disable; 1: enable.public Long getProbeStatus()
public void setProbeStatus(Long ProbeStatus)
ProbeStatus
- 0: Disable probe test; 1: Enable probe test. The probe test is enabled by default.Copyright © 2024. All rights reserved.