All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.edas20170801.models.UpdateK8sSlbRequest Maven / Gradle / Ivy

Go to download

Alibaba Cloud Enterprise Distributed Application Service (20170801) SDK for Java

There is a newer version: 1.0.15
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.edas20170801.models;

import com.aliyun.tea.*;

public class UpdateK8sSlbRequest extends TeaModel {
    /**
     * 

The ID of the application. You can query the application ID by calling the ListApplication operation. For more information, see [ListApplication](~~149390~~).

*/ @NameInMap("AppId") public String appId; /** *

The ID of the cluster. You can query the cluster ID by calling the GetK8sCluster operation. For more information, see [GetK8sCluster](~~181437~~).

*/ @NameInMap("ClusterId") public String clusterId; /** *

Specifies whether to disable listener configuration overriding.

*
*

* true: disables listener configuration overriding.

*

* false: enables listener configuration overriding.

*/ @NameInMap("DisableForceOverride") public Boolean disableForceOverride; /** *

The frontend port. Valid values: 1 to 65535.

*/ @NameInMap("Port") public String port; /** *

The scheduling algorithm for the SLB instance. If you do not specify this parameter, the default value rr is used. SLB supports the following scheduling algorithms: round-robin and weighted round-robin. Valid values:

*
*

* 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.

*/ @NameInMap("Scheduler") public String scheduler; /** *

The information about the ports. This parameter is required if you want to configure multi-port mappings or use a protocol other than TCP. You must set this parameter to a JSON array. Example: \[{"targetPort":8080,"port":82,"loadBalancerProtocol":"TCP"},{"port":81,"certId":"1362469756373809\_16c185d6fa2\_1914500329\_-xxxxxxx","targetPort":8181,"lo adBalancerProtocol":"HTTPS"}]

*
*

* 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.

*/ @NameInMap("ServicePortInfos") public String servicePortInfos; /** *

The name of the SLB instance.

*/ @NameInMap("SlbName") public String slbName; /** *

The protocol used by the SLB instance. Set the value to TCP.

*/ @NameInMap("SlbProtocol") public String slbProtocol; /** *

The specifications of the SLB instance.

*
*

* 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.

*/ @NameInMap("Specification") public String specification; /** *

The backend port, which is also the service port of the application. Valid values: 1 to 65535.

*/ @NameInMap("TargetPort") public String targetPort; /** *

The type of the SLB instance. Valid values:

*
*

* Internet: an Internet-facing SLB instance

*

* Intranet: an internal-facing SLB instance

*/ @NameInMap("Type") public String type; public static UpdateK8sSlbRequest build(java.util.Map map) throws Exception { UpdateK8sSlbRequest self = new UpdateK8sSlbRequest(); return TeaModel.build(map, self); } public UpdateK8sSlbRequest setAppId(String appId) { this.appId = appId; return this; } public String getAppId() { return this.appId; } public UpdateK8sSlbRequest setClusterId(String clusterId) { this.clusterId = clusterId; return this; } public String getClusterId() { return this.clusterId; } public UpdateK8sSlbRequest setDisableForceOverride(Boolean disableForceOverride) { this.disableForceOverride = disableForceOverride; return this; } public Boolean getDisableForceOverride() { return this.disableForceOverride; } public UpdateK8sSlbRequest setPort(String port) { this.port = port; return this; } public String getPort() { return this.port; } public UpdateK8sSlbRequest setScheduler(String scheduler) { this.scheduler = scheduler; return this; } public String getScheduler() { return this.scheduler; } public UpdateK8sSlbRequest setServicePortInfos(String servicePortInfos) { this.servicePortInfos = servicePortInfos; return this; } public String getServicePortInfos() { return this.servicePortInfos; } public UpdateK8sSlbRequest setSlbName(String slbName) { this.slbName = slbName; return this; } public String getSlbName() { return this.slbName; } public UpdateK8sSlbRequest setSlbProtocol(String slbProtocol) { this.slbProtocol = slbProtocol; return this; } public String getSlbProtocol() { return this.slbProtocol; } public UpdateK8sSlbRequest setSpecification(String specification) { this.specification = specification; return this; } public String getSpecification() { return this.specification; } public UpdateK8sSlbRequest setTargetPort(String targetPort) { this.targetPort = targetPort; return this; } public String getTargetPort() { return this.targetPort; } public UpdateK8sSlbRequest setType(String type) { this.type = type; return this; } public String getType() { return this.type; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy