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

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

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.edas20170801.models;

import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link UpdateK8sSlbRequest} extends {@link RequestModel}
 *
 * 

UpdateK8sSlbRequest

*/ public class UpdateK8sSlbRequest extends Request { @Query @NameInMap("AppId") @Validation(required = true) private String appId; @Query @NameInMap("ClusterId") @Validation(required = true) private String clusterId; @Query @NameInMap("DisableForceOverride") private Boolean disableForceOverride; @Query @NameInMap("Port") private String port; @Query @NameInMap("Scheduler") private String scheduler; @Query @NameInMap("ServicePortInfos") private String servicePortInfos; @Query @NameInMap("SlbName") private String slbName; @Query @NameInMap("SlbProtocol") private String slbProtocol; @Query @NameInMap("Specification") private String specification; @Query @NameInMap("TargetPort") private String targetPort; @Query @NameInMap("Type") @Validation(required = true) private String type; private UpdateK8sSlbRequest(Builder builder) { super(builder); this.appId = builder.appId; this.clusterId = builder.clusterId; this.disableForceOverride = builder.disableForceOverride; this.port = builder.port; this.scheduler = builder.scheduler; this.servicePortInfos = builder.servicePortInfos; this.slbName = builder.slbName; this.slbProtocol = builder.slbProtocol; this.specification = builder.specification; this.targetPort = builder.targetPort; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static UpdateK8sSlbRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return appId */ public String getAppId() { return this.appId; } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return disableForceOverride */ public Boolean getDisableForceOverride() { return this.disableForceOverride; } /** * @return port */ public String getPort() { return this.port; } /** * @return scheduler */ public String getScheduler() { return this.scheduler; } /** * @return servicePortInfos */ public String getServicePortInfos() { return this.servicePortInfos; } /** * @return slbName */ public String getSlbName() { return this.slbName; } /** * @return slbProtocol */ public String getSlbProtocol() { return this.slbProtocol; } /** * @return specification */ public String getSpecification() { return this.specification; } /** * @return targetPort */ public String getTargetPort() { return this.targetPort; } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder { private String appId; private String clusterId; private Boolean disableForceOverride; private String port; private String scheduler; private String servicePortInfos; private String slbName; private String slbProtocol; private String specification; private String targetPort; private String type; private Builder() { super(); } private Builder(UpdateK8sSlbRequest request) { super(request); this.appId = request.appId; this.clusterId = request.clusterId; this.disableForceOverride = request.disableForceOverride; this.port = request.port; this.scheduler = request.scheduler; this.servicePortInfos = request.servicePortInfos; this.slbName = request.slbName; this.slbProtocol = request.slbProtocol; this.specification = request.specification; this.targetPort = request.targetPort; this.type = request.type; } /** * The ID of the application. You can query the application ID by calling the ListApplication operation. For more information, see [ListApplication](~~149390~~). */ public Builder appId(String appId) { this.putQueryParameter("AppId", appId); this.appId = appId; return this; } /** * The ID of the cluster. You can query the cluster ID by calling the GetK8sCluster operation. For more information, see [GetK8sCluster](~~181437~~). */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * Specifies whether to disable listener configuration overriding. *

* * * true: disables listener configuration overriding. * * false: enables listener configuration overriding. */ public Builder disableForceOverride(Boolean disableForceOverride) { this.putQueryParameter("DisableForceOverride", disableForceOverride); this.disableForceOverride = disableForceOverride; return this; } /** * The frontend port. Valid values: 1 to 65535. */ public Builder port(String port) { this.putQueryParameter("Port", port); this.port = port; return this; } /** * 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. */ public Builder scheduler(String scheduler) { this.putQueryParameter("Scheduler", scheduler); this.scheduler = scheduler; return this; } /** * 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. */ public Builder servicePortInfos(String servicePortInfos) { this.putQueryParameter("ServicePortInfos", servicePortInfos); this.servicePortInfos = servicePortInfos; return this; } /** * The name of the SLB instance. */ public Builder slbName(String slbName) { this.putQueryParameter("SlbName", slbName); this.slbName = slbName; return this; } /** * The protocol used by the SLB instance. Set the value to TCP. */ public Builder slbProtocol(String slbProtocol) { this.putQueryParameter("SlbProtocol", slbProtocol); this.slbProtocol = slbProtocol; return this; } /** * 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. */ public Builder specification(String specification) { this.putQueryParameter("Specification", specification); this.specification = specification; return this; } /** * The backend port, which is also the service port of the application. Valid values: 1 to 65535. */ public Builder targetPort(String targetPort) { this.putQueryParameter("TargetPort", targetPort); this.targetPort = targetPort; return this; } /** * The type of the SLB instance. Valid values: *

* * * Internet: an Internet-facing SLB instance * * Intranet: an internal-facing SLB instance */ public Builder type(String type) { this.putQueryParameter("Type", type); this.type = type; return this; } @Override public UpdateK8sSlbRequest build() { return new UpdateK8sSlbRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy