public static final class BindK8sSlbRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
BindK8sSlbRequest.Builder |
appId(String appId)
The ID of the application.
|
BindK8sSlbRequest |
build() |
BindK8sSlbRequest.Builder |
clusterId(String clusterId)
The ID of the cluster.
|
BindK8sSlbRequest.Builder |
port(String port)
The frontend port.
|
BindK8sSlbRequest.Builder |
scheduler(String scheduler)
The scheduling algorithm for the SLB instance.
|
BindK8sSlbRequest.Builder |
servicePortInfos(String servicePortInfos)
The information about the ports.
|
BindK8sSlbRequest.Builder |
slbId(String slbId)
The ID of the SLB instance.
|
BindK8sSlbRequest.Builder |
slbProtocol(String slbProtocol)
The protocol used by the SLB instance.
|
BindK8sSlbRequest.Builder |
specification(String specification)
The instance type of the SLB instance.
|
BindK8sSlbRequest.Builder |
targetPort(String targetPort)
The backend port, which is also the service port of the application.
|
BindK8sSlbRequest.Builder |
type(String type)
The type of the SLB instance.
|
public BindK8sSlbRequest.Builder appId(String appId)
public BindK8sSlbRequest.Builder clusterId(String clusterId)
public BindK8sSlbRequest.Builder port(String port)
public BindK8sSlbRequest.Builder scheduler(String scheduler)
* wrr: weighted round-robin scheduling. Backend servers that have higher weights receive more requests than those that have lower weights. * rr: round-robin scheduling. Requests are sequentially distributed to backend servers.
public BindK8sSlbRequest.Builder servicePortInfos(String servicePortInfos)
* port: The frontend port. Valid values: 1 to 65535. This parameter is required. Each port must be unique. * targetPort: The backend port. Valid values: 1 to 65535. This parameter is required. * loadBalancerProtocol: This parameter is required. Valid values: TCP and HTTPS. If the HTTP protocol is used, set this parameter to TCP. * certId: the ID of the certificate. This parameter is required if the HTTPS protocol is used. You can purchase an SLB instance in the SLB console. > The ServicePortInfos parameter is specified to support multi-port mappings. If you want this parameter to take effect, make sure that you have set the AppId, ClusterId, Type, and SlbId parameters.
public BindK8sSlbRequest.Builder slbId(String slbId)
public BindK8sSlbRequest.Builder slbProtocol(String slbProtocol)
public BindK8sSlbRequest.Builder specification(String specification)
* slb.s1.small * slb.s2.small * slb.s2.medium * slb.s3.small * slb.s3.medium * slb.s3.large
public BindK8sSlbRequest.Builder targetPort(String targetPort)
public BindK8sSlbRequest.Builder type(String type)
* internet: Internet-facing SLB instance * intranet: internal-facing SLB instance
public BindK8sSlbRequest build()
Copyright © 2023. All rights reserved.