public class CreateEndpointGroupRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations |
static class |
CreateEndpointGroupRequest.CreateEndpointGroupRequestPortOverrides |
| 限定符和类型 | 字段和说明 |
|---|---|
String |
acceleratorId
The ID of the GA instance.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the endpoint group.
|
List<CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations> |
endpointConfigurations |
String |
endpointGroupRegion
The ID of the region in which to create the endpoint group.
|
String |
endpointGroupType
The type of the endpoint group.
|
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 at which health checks are performed.
|
String |
healthCheckPath
The path to which to send health check requests.
|
Integer |
healthCheckPort
The port that is used for health checks.
|
String |
healthCheckProtocol
The protocol over which to send health check requests.
|
String |
listenerId
The ID of the listener.
|
String |
name
The name of the endpoint group.
|
List<CreateEndpointGroupRequest.CreateEndpointGroupRequestPortOverrides> |
portOverrides |
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 traffic ratio for the endpoint group when the specified listener is associated with multiple endpoint groups.
|
| 构造器和说明 |
|---|
CreateEndpointGroupRequest() |
@NameInMap(value="AcceleratorId") public String acceleratorId
The ID of the GA instance.
@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 different 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<CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations> endpointConfigurations
@NameInMap(value="EndpointGroupRegion") public String endpointGroupRegion
The ID of the region in which to create the endpoint group.
@NameInMap(value="EndpointGroupType") public String endpointGroupType
The type of the endpoint group. Default value: default. Valid values:
* **default**: a default endpoint group.
* **virtual**: a virtual endpoint group.
> Only HTTP and HTTPS listeners support virtual endpoint groups.
@NameInMap(value="EndpointRequestProtocol") public String endpointRequestProtocol
The protocol that is used by the backend service. Default value: HTTP. Valid values:
* **HTTP**
* **HTTPS**
>
* You can set this parameter only when the listener that is associated with the endpoint group uses **HTTP** or **HTTPS**.
* 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 at which health checks are performed. Unit: seconds.
@NameInMap(value="HealthCheckPath") public String healthCheckPath
The path to which to send health check requests.
@NameInMap(value="HealthCheckPort") public Integer healthCheckPort
The port that is used for health checks.
@NameInMap(value="HealthCheckProtocol") public String healthCheckProtocol
The protocol over which to send health check requests. Valid values:
* **tcp**: TCP
* **http**: HTTP
* **https**: HTTPS
@NameInMap(value="ListenerId") public String listenerId
The ID of the listener.
@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<CreateEndpointGroupRequest.CreateEndpointGroupRequestPortOverrides> portOverrides
@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**. Default value: **3**.
@NameInMap(value="TrafficPercentage") public Integer trafficPercentage
The traffic ratio for the endpoint group when the specified listener is associated with multiple endpoint groups.
Valid values: **1** to **100**.
public static CreateEndpointGroupRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateEndpointGroupRequest setAcceleratorId(String acceleratorId)
public String getAcceleratorId()
public CreateEndpointGroupRequest setClientToken(String clientToken)
public String getClientToken()
public CreateEndpointGroupRequest setDescription(String description)
public String getDescription()
public CreateEndpointGroupRequest setEndpointConfigurations(List<CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations> endpointConfigurations)
public List<CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations> getEndpointConfigurations()
public CreateEndpointGroupRequest setEndpointGroupRegion(String endpointGroupRegion)
public String getEndpointGroupRegion()
public CreateEndpointGroupRequest setEndpointGroupType(String endpointGroupType)
public String getEndpointGroupType()
public CreateEndpointGroupRequest setEndpointRequestProtocol(String endpointRequestProtocol)
public String getEndpointRequestProtocol()
public CreateEndpointGroupRequest setHealthCheckEnabled(Boolean healthCheckEnabled)
public Boolean getHealthCheckEnabled()
public CreateEndpointGroupRequest setHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)
public Integer getHealthCheckIntervalSeconds()
public CreateEndpointGroupRequest setHealthCheckPath(String healthCheckPath)
public String getHealthCheckPath()
public CreateEndpointGroupRequest setHealthCheckPort(Integer healthCheckPort)
public Integer getHealthCheckPort()
public CreateEndpointGroupRequest setHealthCheckProtocol(String healthCheckProtocol)
public String getHealthCheckProtocol()
public CreateEndpointGroupRequest setListenerId(String listenerId)
public String getListenerId()
public CreateEndpointGroupRequest setName(String name)
public String getName()
public CreateEndpointGroupRequest setPortOverrides(List<CreateEndpointGroupRequest.CreateEndpointGroupRequestPortOverrides> portOverrides)
public List<CreateEndpointGroupRequest.CreateEndpointGroupRequestPortOverrides> getPortOverrides()
public CreateEndpointGroupRequest setRegionId(String regionId)
public String getRegionId()
public CreateEndpointGroupRequest setThresholdCount(Integer thresholdCount)
public Integer getThresholdCount()
public CreateEndpointGroupRequest setTrafficPercentage(Integer trafficPercentage)
public Integer getTrafficPercentage()
Copyright © 2023. All rights reserved.