public static class CreateEndpointGroupsRequest.CreateEndpointGroupsRequestEndpointGroupConfigurationsEndpointConfigurations
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
endpoint
The IP address or domain name of the endpoint.
|
String |
type
The type of the endpoint.
|
Long |
weight
The weight of the endpoint.
|
| 构造器和说明 |
|---|
CreateEndpointGroupsRequest.CreateEndpointGroupsRequestEndpointGroupConfigurationsEndpointConfigurations() |
@NameInMap(value="Endpoint") public String endpoint
The IP address or domain name of the endpoint.
You can specify up to 100 endpoint IP addresses or domain names in an endpoint group.
> This parameter is required.
@NameInMap(value="Type") public String type
The type of the endpoint. Valid values:
* **Domain**: a custom domain name
* **Ip**: a custom IP address
* **PublicIp**: a public IP address provided by Alibaba Cloud
* **ECS**: an Elastic Compute Service (ECS) instance
* **SLB**: a Server Load Balancer (SLB) instance
* **ALB**: an Application Load Balancer (ALB) instance
* **OSS**: an Object Storage Service (OSS) bucket
You can specify up to 100 endpoint types for an endpoint group.
>
* This parameter is required.
* If you set this parameter to **ECS** or **SLB** and the service-linked role AliyunServiceRoleForGaVpcEndpoint does not exist, the system creates the service-linked role.
* If you set this parameter to **ALB** and the service-linked role AliyunServiceRoleForGaAlb does not exist, the system creates the service-linked role.
* If you set this parameter to **OSS** and the service-linked role AliyunServiceRoleForGaOss does not exist, the system creates the service-linked role.
For more information, see [Service-linked roles](~~178360~~).
@NameInMap(value="Weight") public Long weight
The weight of the endpoint.
Valid values: **0** to **255**.
You can set the weights of up to 100 endpoints in an endpoint group.
>
* This parameter is required.
* If the weight of an endpoint is set to 0, GA stops distributing network traffic to the endpoint. Proceed with caution.
public CreateEndpointGroupsRequest.CreateEndpointGroupsRequestEndpointGroupConfigurationsEndpointConfigurations()
public static CreateEndpointGroupsRequest.CreateEndpointGroupsRequestEndpointGroupConfigurationsEndpointConfigurations build(Map<String,?> map) throws Exception
Exceptionpublic CreateEndpointGroupsRequest.CreateEndpointGroupsRequestEndpointGroupConfigurationsEndpointConfigurations setEndpoint(String endpoint)
public String getEndpoint()
public CreateEndpointGroupsRequest.CreateEndpointGroupsRequestEndpointGroupConfigurationsEndpointConfigurations setType(String type)
public String getType()
public CreateEndpointGroupsRequest.CreateEndpointGroupsRequestEndpointGroupConfigurationsEndpointConfigurations setWeight(Long weight)
public Long getWeight()
Copyright © 2023. All rights reserved.