com.aliyun.sdk.service.ens20171110.models.RemoveBackendServersRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-ens20171110 Show documentation
Show all versions of alibabacloud-ens20171110 Show documentation
Alibaba Cloud Ens (20171110) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ens20171110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link RemoveBackendServersRequest} extends {@link RequestModel}
*
* RemoveBackendServersRequest
*/
public class RemoveBackendServersRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackendServers")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List backendServers;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerId")
@com.aliyun.core.annotation.Validation(required = true)
private String loadBalancerId;
private RemoveBackendServersRequest(Builder builder) {
super(builder);
this.backendServers = builder.backendServers;
this.loadBalancerId = builder.loadBalancerId;
}
public static Builder builder() {
return new Builder();
}
public static RemoveBackendServersRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backendServers
*/
public java.util.List getBackendServers() {
return this.backendServers;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
public static final class Builder extends Request.Builder {
private java.util.List backendServers;
private String loadBalancerId;
private Builder() {
super();
}
private Builder(RemoveBackendServersRequest request) {
super(request);
this.backendServers = request.backendServers;
this.loadBalancerId = request.loadBalancerId;
}
/**
* The list of backend servers that you want to remove. You can remove up to 20 backend servers at a time.
* This parameter is required.
*/
public Builder backendServers(java.util.List backendServers) {
String backendServersShrink = shrink(backendServers, "BackendServers", "json");
this.putQueryParameter("BackendServers", backendServersShrink);
this.backendServers = backendServers;
return this;
}
/**
* The ID of the Edge Load Balancer (ELB) instance.
* This parameter is required.
*
* example:
* lb-5ovkn1piwqmoqrfjdyhq4****
*/
public Builder loadBalancerId(String loadBalancerId) {
this.putQueryParameter("LoadBalancerId", loadBalancerId);
this.loadBalancerId = loadBalancerId;
return this;
}
@Override
public RemoveBackendServersRequest build() {
return new RemoveBackendServersRequest(this);
}
}
/**
*
* {@link RemoveBackendServersRequest} extends {@link TeaModel}
*
* RemoveBackendServersRequest
*/
public static class BackendServers extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ip")
private String ip;
@com.aliyun.core.annotation.NameInMap("Port")
@com.aliyun.core.annotation.Validation(maximum = 65535)
private Integer port;
@com.aliyun.core.annotation.NameInMap("ServerId")
@com.aliyun.core.annotation.Validation(required = true)
private String serverId;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Weight")
@com.aliyun.core.annotation.Validation(maximum = 100)
private Integer weight;
private BackendServers(Builder builder) {
this.ip = builder.ip;
this.port = builder.port;
this.serverId = builder.serverId;
this.type = builder.type;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static BackendServers create() {
return builder().build();
}
/**
* @return ip
*/
public String getIp() {
return this.ip;
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return serverId
*/
public String getServerId() {
return this.serverId;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return weight
*/
public Integer getWeight() {
return this.weight;
}
public static final class Builder {
private String ip;
private Integer port;
private String serverId;
private String type;
private Integer weight;
/**
* The IP address of the backend server.
*
* example:
* 192.XXX.X.X
*/
public Builder ip(String ip) {
this.ip = ip;
return this;
}
/**
* The backend port that is used by the Edge Load Balancer (ELB) instance.
*
* example:
* 0
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* The instance ID of the backend server.
* This parameter is required.
*
* example:
* i-5uf68ts0fqexe1a4n****
*/
public Builder serverId(String serverId) {
this.serverId = serverId;
return this;
}
/**
* The type of backend server. Valid values:
*
* - ens: an Edge Node Service (ENS) instance.
* - eni: an Elastic Network Interface (ENI).
*
*
* example:
* ens
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* The weight of the backend server.
*
* example:
* 100
*/
public Builder weight(Integer weight) {
this.weight = weight;
return this;
}
public BackendServers build() {
return new BackendServers(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy