public class CreateRuleRequest extends AbstractModel
Constructor and Description |
---|
CreateRuleRequest() |
CreateRuleRequest(CreateRuleRequest 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 |
---|---|
RuleCheckParams |
getCheckParams()
Get Parameters related to origin server health check
|
String |
getDomain()
Get Domain name of the forwarding rule
|
String |
getForcedRedirect()
Get Enables HTTP-to-HTTPS force redirect for a forwarding rule.
|
String |
getForwardHost()
Get The host to which the acceleration connection forwards.
|
String |
getForwardProtocol()
Get Protocol types of the forwarding from acceleration connection to origin server, which supports HTTP or HTTPS.
|
Long |
getHealthCheck()
Get Whether the health check is enabled for rules.
|
String |
getListenerId()
Get Layer-7 listener ID
|
String |
getPath()
Get Path of the forwarding rule
|
String |
getRealServerType()
Get The origin server type of the forwarding rule, which supports IP and DOMAIN types.
|
String |
getScheduler()
Get The strategy used by the listener to access the origin server.
|
String |
getServerNameIndication()
Get Server Name Indication (SNI).
|
String |
getServerNameIndicationSwitch()
Get Whether to enable SNI.
|
void |
setCheckParams(RuleCheckParams CheckParams)
Set Parameters related to origin server health check
|
void |
setDomain(String Domain)
Set Domain name of the forwarding rule
|
void |
setForcedRedirect(String ForcedRedirect)
Set Enables HTTP-to-HTTPS force redirect for a forwarding rule.
|
void |
setForwardHost(String ForwardHost)
Set The host to which the acceleration connection forwards.
|
void |
setForwardProtocol(String ForwardProtocol)
Set Protocol types of the forwarding from acceleration connection to origin server, which supports HTTP or HTTPS.
|
void |
setHealthCheck(Long HealthCheck)
Set Whether the health check is enabled for rules.
|
void |
setListenerId(String ListenerId)
Set Layer-7 listener ID
|
void |
setPath(String Path)
Set Path of the forwarding rule
|
void |
setRealServerType(String RealServerType)
Set The origin server type of the forwarding rule, which supports IP and DOMAIN types.
|
void |
setScheduler(String Scheduler)
Set The strategy used by the listener to access the origin server.
|
void |
setServerNameIndication(String ServerNameIndication)
Set Server Name Indication (SNI).
|
void |
setServerNameIndicationSwitch(String ServerNameIndicationSwitch)
Set Whether to enable SNI.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateRuleRequest()
public CreateRuleRequest(CreateRuleRequest source)
public String getListenerId()
public void setListenerId(String ListenerId)
ListenerId
- Layer-7 listener IDpublic String getDomain()
public void setDomain(String Domain)
Domain
- Domain name of the forwarding rulepublic String getPath()
public void setPath(String Path)
Path
- Path of the forwarding rulepublic String getRealServerType()
public void setRealServerType(String RealServerType)
RealServerType
- The origin server type of the forwarding rule, which supports IP and DOMAIN types.public String getScheduler()
public void setScheduler(String Scheduler)
Scheduler
- The strategy used by the listener to access the origin server. Values: `rr` (round-robin), `wrr` (weighted round-robin), `lc` (the least-connections strategy).public Long getHealthCheck()
public void setHealthCheck(Long HealthCheck)
HealthCheck
- Whether the health check is enabled for rules. 1: enabled; 0: disabled.public RuleCheckParams getCheckParams()
public void setCheckParams(RuleCheckParams CheckParams)
CheckParams
- Parameters related to origin server health checkpublic String getForwardProtocol()
public void setForwardProtocol(String ForwardProtocol)
ForwardProtocol
- Protocol types of the forwarding from acceleration connection to origin server, which supports HTTP or HTTPS.
If this field is not passed in, it indicates that the ForwardProtocol of the corresponding listener will be used.public String getForwardHost()
public void setForwardHost(String ForwardHost)
ForwardHost
- The host to which the acceleration connection forwards. If this parameter is not specified, the default host will be used, i.e., the host with which the client initiates HTTP requests.public String getServerNameIndicationSwitch()
public void setServerNameIndicationSwitch(String ServerNameIndicationSwitch)
ServerNameIndicationSwitch
- Whether to enable SNI. Values: `on` (enable), `off` (disable). For creation of HTTP listener forwarding rules, SNI is disabled by default.public String getServerNameIndication()
public void setServerNameIndication(String ServerNameIndication)
ServerNameIndication
- Server Name Indication (SNI). This field is required when `ServerNameIndicationSwitch` is `ON`.public String getForcedRedirect()
public void setForcedRedirect(String ForcedRedirect)
ForcedRedirect
- Enables HTTP-to-HTTPS force redirect for a forwarding rule. Enter a hostname and path of the current forwarding rule.Copyright © 2023. All rights reserved.