public class UpdateEndpointGroupRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
UpdateEndpointGroupRequest.UpdateEndpointGroupRequestEndpointConfigurations |
static class |
UpdateEndpointGroupRequest.UpdateEndpointGroupRequestPortOverrides |
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the endpoint group.
|
List<UpdateEndpointGroupRequest.UpdateEndpointGroupRequestEndpointConfigurations> |
endpointConfigurations
The information about the endpoints.
|
String |
endpointGroupId
The ID of the endpoint group.
|
String |
endpointGroupRegion
The ID of the region where the endpoint group is created.
|
String |
endpointRequestProtocol
The protocol that is used by the backend service.
|
Boolean |
healthCheckEnabled
Specifies whether to enable the health check feature.
|
Integer |
healthCheckIntervalSeconds
The interval between two consecutive health checks.
|
String |
healthCheckPath
The path to which health check requests are sent.
|
Integer |
healthCheckPort
The port that is used for health checks.
|
String |
healthCheckProtocol
The protocol over which health check requests are sent.
|
String |
name
The name of the endpoint group.
|
List<UpdateEndpointGroupRequest.UpdateEndpointGroupRequestPortOverrides> |
portOverrides
The mappings between ports.
|
String |
regionId
The ID of the region where the GA instance is deployed.
|
Integer |
thresholdCount
The number of consecutive health check failures that must occur before a healthy endpoint group is considered unhealthy, or the number of consecutive health check successes that must occur before an unhealthy endpoint group is considered healthy.
|
Integer |
trafficPercentage
The weight of the endpoint group when the listener is associated with multiple endpoint groups.
|
构造器和说明 |
---|
UpdateEndpointGroupRequest() |
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
You can use the client to generate the value, but you must make sure that it is unique among all requests. ClientToken can contain only ASCII characters.
> If you do not set this parameter, **ClientToken** is set to the value of **RequestId**. The value of **RequestId** may be different for each API request.
@NameInMap(value="Description") public String description
The description of the endpoint group.
The description cannot exceed 256 characters in length and cannot contain `http://` or `https://`.
@NameInMap(value="EndpointConfigurations") public List<UpdateEndpointGroupRequest.UpdateEndpointGroupRequestEndpointConfigurations> endpointConfigurations
The information about the endpoints.
You can specify information for up to 20 endpoints.
@NameInMap(value="EndpointGroupId") public String endpointGroupId
The ID of the endpoint group.
@NameInMap(value="EndpointGroupRegion") public String endpointGroupRegion
The ID of the region where the endpoint group is created.
@NameInMap(value="EndpointRequestProtocol") public String endpointRequestProtocol
The protocol that is used by the backend service. Valid values:
* **HTTP**
* **HTTPS**
> * You can set this parameter only when the listener that is associated with the endpoint group uses the HTTP or HTTPS protocol.
> * For an HTTP listener, the backend service protocol must be HTTP.
@NameInMap(value="HealthCheckEnabled") public Boolean healthCheckEnabled
Specifies whether to enable the health check feature. Default value: true. Valid values:
* **true**: enables the health check feature.
* **false**: disables the health check feature.
@NameInMap(value="HealthCheckIntervalSeconds") public Integer healthCheckIntervalSeconds
The interval between two consecutive health checks. Unit: seconds. Valid values: **1** to **50**.
@NameInMap(value="HealthCheckPath") public String healthCheckPath
The path to which health check requests are sent.
@NameInMap(value="HealthCheckPort") public Integer healthCheckPort
The port that is used for health checks. Valid values: **1** to **65535**.
@NameInMap(value="HealthCheckProtocol") public String healthCheckProtocol
The protocol over which health check requests are sent. Valid values:
* **tcp**: TCP
* **http**: HTTP
* **https**: HTTPS
@NameInMap(value="Name") public String name
The name of the endpoint group.
The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (\_), and hyphens (-). The name must start with a letter.
@NameInMap(value="PortOverrides") public List<UpdateEndpointGroupRequest.UpdateEndpointGroupRequestPortOverrides> portOverrides
The mappings between ports.
@NameInMap(value="RegionId") public String regionId
The ID of the region where the GA instance is deployed. Set the value to **cn-hangzhou**.
@NameInMap(value="ThresholdCount") public Integer thresholdCount
The number of consecutive health check failures that must occur before a healthy endpoint group is considered unhealthy, or the number of consecutive health check successes that must occur before an unhealthy endpoint group is considered healthy.
Valid values: **2** to **10**.
@NameInMap(value="TrafficPercentage") public Integer trafficPercentage
The weight of the endpoint group when the listener is associated with multiple endpoint groups.
public static UpdateEndpointGroupRequest build(Map<String,?> map) throws Exception
Exception
public UpdateEndpointGroupRequest setClientToken(String clientToken)
public String getClientToken()
public UpdateEndpointGroupRequest setDescription(String description)
public String getDescription()
public UpdateEndpointGroupRequest setEndpointConfigurations(List<UpdateEndpointGroupRequest.UpdateEndpointGroupRequestEndpointConfigurations> endpointConfigurations)
public List<UpdateEndpointGroupRequest.UpdateEndpointGroupRequestEndpointConfigurations> getEndpointConfigurations()
public UpdateEndpointGroupRequest setEndpointGroupId(String endpointGroupId)
public String getEndpointGroupId()
public UpdateEndpointGroupRequest setEndpointGroupRegion(String endpointGroupRegion)
public String getEndpointGroupRegion()
public UpdateEndpointGroupRequest setEndpointRequestProtocol(String endpointRequestProtocol)
public String getEndpointRequestProtocol()
public UpdateEndpointGroupRequest setHealthCheckEnabled(Boolean healthCheckEnabled)
public Boolean getHealthCheckEnabled()
public UpdateEndpointGroupRequest setHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)
public Integer getHealthCheckIntervalSeconds()
public UpdateEndpointGroupRequest setHealthCheckPath(String healthCheckPath)
public String getHealthCheckPath()
public UpdateEndpointGroupRequest setHealthCheckPort(Integer healthCheckPort)
public Integer getHealthCheckPort()
public UpdateEndpointGroupRequest setHealthCheckProtocol(String healthCheckProtocol)
public String getHealthCheckProtocol()
public UpdateEndpointGroupRequest setName(String name)
public String getName()
public UpdateEndpointGroupRequest setPortOverrides(List<UpdateEndpointGroupRequest.UpdateEndpointGroupRequestPortOverrides> portOverrides)
public List<UpdateEndpointGroupRequest.UpdateEndpointGroupRequestPortOverrides> getPortOverrides()
public UpdateEndpointGroupRequest setRegionId(String regionId)
public String getRegionId()
public UpdateEndpointGroupRequest setThresholdCount(Integer thresholdCount)
public Integer getThresholdCount()
public UpdateEndpointGroupRequest setTrafficPercentage(Integer trafficPercentage)
public Integer getTrafficPercentage()
Copyright © 2024. All rights reserved.