public class CreateUpstreamRequest extends AbstractModel
| Constructor and Description |
|---|
CreateUpstreamRequest() |
CreateUpstreamRequest(CreateUpstreamRequest 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 |
|---|---|
String |
getAlgorithm()
Get The balancing method can only be `ROUND_ROBIN`.
|
K8sService[] |
getK8sService()
Get The location of K8s service
|
UpstreamNode[] |
getNodes()
Get Backend nodes
|
Long |
getRetries()
Get Retry attempts.
|
String |
getScheme()
Get Backend protocol.
|
String |
getUniqVpcId()
Get Unique VPC ID
|
String |
getUpstreamDescription()
Get Description of the upstream
|
String |
getUpstreamHost()
Get The host header in the request sending to the backend
|
String |
getUpstreamName()
Get Name of the upstream
|
void |
setAlgorithm(String Algorithm)
Set The balancing method can only be `ROUND_ROBIN`.
|
void |
setK8sService(K8sService[] K8sService)
Set The location of K8s service
|
void |
setNodes(UpstreamNode[] Nodes)
Set Backend nodes
|
void |
setRetries(Long Retries)
Set Retry attempts.
|
void |
setScheme(String Scheme)
Set Backend protocol.
|
void |
setUniqVpcId(String UniqVpcId)
Set Unique VPC ID
|
void |
setUpstreamDescription(String UpstreamDescription)
Set Description of the upstream
|
void |
setUpstreamHost(String UpstreamHost)
Set The host header in the request sending to the backend
|
void |
setUpstreamName(String UpstreamName)
Set Name of the upstream
|
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, toJsonStringpublic CreateUpstreamRequest()
public CreateUpstreamRequest(CreateUpstreamRequest source)
public String getScheme()
public void setScheme(String Scheme)
Scheme - Backend protocol. Values: `HTTP`, `HTTPS`public String getAlgorithm()
public void setAlgorithm(String Algorithm)
Algorithm - The balancing method can only be `ROUND_ROBIN`.public String getUniqVpcId()
public void setUniqVpcId(String UniqVpcId)
UniqVpcId - Unique VPC IDpublic String getUpstreamName()
public void setUpstreamName(String UpstreamName)
UpstreamName - Name of the upstreampublic String getUpstreamDescription()
public void setUpstreamDescription(String UpstreamDescription)
UpstreamDescription - Description of the upstreampublic Long getRetries()
public void setRetries(Long Retries)
Retries - Retry attempts. It defaults to `3`.public String getUpstreamHost()
public void setUpstreamHost(String UpstreamHost)
UpstreamHost - The host header in the request sending to the backendpublic UpstreamNode[] getNodes()
public void setNodes(UpstreamNode[] Nodes)
Nodes - Backend nodespublic K8sService[] getK8sService()
public void setK8sService(K8sService[] K8sService)
K8sService - The location of K8s serviceCopyright © 2022. All rights reserved.