public class CreateEndpointGroupRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations |
static class |
CreateEndpointGroupRequest.CreateEndpointGroupRequestPortOverrides |
static class |
CreateEndpointGroupRequest.CreateEndpointGroupRequestTag |
限定符和类型 | 字段和说明 |
---|---|
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
The configurations of endpoints in the endpoint group.
|
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
The mappings between ports.
|
String |
regionId
The ID of the region where the GA instance is deployed.
|
List<CreateEndpointGroupRequest.CreateEndpointGroupRequestTag> |
tag
Tags of GA instances.
|
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 token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.
> If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.
@NameInMap(value="Description") public String description
The description of the endpoint group.
The description can be up to 200 characters in length and cannot start with `http://` or `https://`.
@NameInMap(value="EndpointConfigurations") public List<CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations> endpointConfigurations
The configurations of endpoints in the endpoint group.
@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. Valid values:
* **default** (default): a default endpoint group.
* **virtual**: a virtual endpoint group.
> When you call this operation to create a virtual endpoint group for a Layer 4 listener, make sure that a default endpoint group is created.
@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. Valid values:
* **true**
* **false**
@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** or **TCP**
* **http** or **HTTP**
* **https** or **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 1 to 128 characters in length and can contain letters, digits, periods (.), underscores (\_), and hyphens (-). The name must start with a letter.
@NameInMap(value="PortOverrides") public List<CreateEndpointGroupRequest.CreateEndpointGroupRequestPortOverrides> 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="Tag") public List<CreateEndpointGroupRequest.CreateEndpointGroupRequestTag> tag
Tags of GA instances.
@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
Exception
public 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 setTag(List<CreateEndpointGroupRequest.CreateEndpointGroupRequestTag> tag)
public List<CreateEndpointGroupRequest.CreateEndpointGroupRequestTag> getTag()
public CreateEndpointGroupRequest setThresholdCount(Integer thresholdCount)
public Integer getThresholdCount()
public CreateEndpointGroupRequest setTrafficPercentage(Integer trafficPercentage)
public Integer getTrafficPercentage()
Copyright © 2024. All rights reserved.