public static final class UpdateK8sSlbRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
UpdateK8sSlbRequest.Builder |
appId(String appId)
The ID of the application.
|
UpdateK8sSlbRequest |
build() |
UpdateK8sSlbRequest.Builder |
clusterId(String clusterId)
The ID of the cluster.
|
UpdateK8sSlbRequest.Builder |
disableForceOverride(Boolean disableForceOverride)
Specifies whether to disable listener configuration overriding.
|
UpdateK8sSlbRequest.Builder |
port(String port)
The frontend port.
|
UpdateK8sSlbRequest.Builder |
scheduler(String scheduler)
The scheduling algorithm for the SLB instance.
|
UpdateK8sSlbRequest.Builder |
servicePortInfos(String servicePortInfos)
The information about the ports.
|
UpdateK8sSlbRequest.Builder |
slbName(String slbName)
The name of the SLB instance.
|
UpdateK8sSlbRequest.Builder |
slbProtocol(String slbProtocol)
The protocol used by the SLB instance.
|
UpdateK8sSlbRequest.Builder |
specification(String specification)
The specifications of the SLB instance.
|
UpdateK8sSlbRequest.Builder |
targetPort(String targetPort)
The backend port, which is also the service port of the application.
|
UpdateK8sSlbRequest.Builder |
type(String type)
The type of the SLB instance.
|
public UpdateK8sSlbRequest.Builder appId(String appId)
public UpdateK8sSlbRequest.Builder clusterId(String clusterId)
public UpdateK8sSlbRequest.Builder disableForceOverride(Boolean disableForceOverride)
* true: disables listener configuration overriding. * false: enables listener configuration overriding.
public UpdateK8sSlbRequest.Builder port(String port)
public UpdateK8sSlbRequest.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 UpdateK8sSlbRequest.Builder servicePortInfos(String servicePortInfos)
* port: required. The frontend port. Valid values: 1 to 65535. Each port must be unique. * targetPort: required. The backend port. Valid values: 1 to 65535. * loadBalancerProtocol: 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. * Note: The ServicePortInfos parameter is specified to support multi-port mappings. If you want this parameter to take effect, make sure that you specify the AppId, ClusterId, Type, and SlbId parameters.
public UpdateK8sSlbRequest.Builder slbName(String slbName)
public UpdateK8sSlbRequest.Builder slbProtocol(String slbProtocol)
public UpdateK8sSlbRequest.Builder specification(String specification)
* slb.s1.small * slb.s2.small * slb.s2.medium * slb.s3.small * slb.s3.medium * slb.s3.large If you do not specify this parameter, the default value slb.s1.small is used.
public UpdateK8sSlbRequest.Builder targetPort(String targetPort)
public UpdateK8sSlbRequest.Builder type(String type)
* Internet: an Internet-facing SLB instance * Intranet: an internal-facing SLB instance
public UpdateK8sSlbRequest build()
Copyright © 2023. All rights reserved.