public static class CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
enableClientIPPreservation
Specifies whether to preserve client IP addresses by using the TCP Option Address (TOA) module.
|
Boolean |
enableProxyProtocol
Specifies whether to use the proxy protocol to preserve client IP addresses.
|
String |
endpoint
Enter the IP address, domain name, or instance ID based on the value of the Type parameter.
|
String |
subAddress
The private IP address of the ENI.
|
String |
type
The type of the endpoint.
|
Integer |
weight
The weight of the endpoint.
|
构造器和说明 |
---|
CreateEndpointGroupRequestEndpointConfigurations() |
@NameInMap(value="EnableClientIPPreservation") public Boolean enableClientIPPreservation
Specifies whether to preserve client IP addresses by using the TCP Option Address (TOA) module. Valid values:
* **true**
* **false** (default)
@NameInMap(value="EnableProxyProtocol") public Boolean enableProxyProtocol
Specifies whether to use the proxy protocol to preserve client IP addresses. Valid values:
* **true**
* **false** (default)
@NameInMap(value="Endpoint") public String endpoint
Enter the IP address, domain name, or instance ID based on the value of the Type parameter.
@NameInMap(value="SubAddress") public String subAddress
The private IP address of the ENI.
> This parameter is available only when you set the endpoint type to **ENI**. If you leave this parameter empty, the primary private IP address of the ENI is used.
@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 Classic Load Balancer (CLB) instance.
* **ALB:** an Application Load Balancer (ALB) instance.
* **OSS:** an Object Storage Service (OSS) bucket.
* **ENI:** an elastic network interface (ENI).
* **NLB:** a Network Load Balancer (NLB) instance.
>
* If you set this parameter to **ECS**, **ENI**, **SLB**, **ALB**, or **NLB** and the AliyunServiceRoleForGaVpcEndpoint service-linked role does not exist, the system automatically creates the service-linked role.
* If you set this parameter to **ALB** and the AliyunServiceRoleForGaAlb service-linked role does not exist, the system automatically creates the role.
* If you set this parameter to **OSS** and the AliyunServiceRoleForGaOss service-linked role does not exist, the system automatically creates the role.
* If you set this parameter to **NLB** and the AliyunServiceRoleForGaNlb service-linked role does not exist, the system automatically creates the role.
For more information, see [Service-linked roles](~~178360~~).
@NameInMap(value="Weight") public Integer weight
The weight of the endpoint.
Valid values: **0** to **255**.
> If you set the weight of an endpoint to 0, GA stops distributing traffic to the endpoint. Proceed with caution.
public CreateEndpointGroupRequestEndpointConfigurations()
public static CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations build(Map<String,?> map) throws Exception
Exception
public CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations setEnableClientIPPreservation(Boolean enableClientIPPreservation)
public Boolean getEnableClientIPPreservation()
public CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations setEnableProxyProtocol(Boolean enableProxyProtocol)
public Boolean getEnableProxyProtocol()
public CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations setEndpoint(String endpoint)
public String getEndpoint()
public CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations setSubAddress(String subAddress)
public String getSubAddress()
public CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations setType(String type)
public String getType()
public CreateEndpointGroupRequest.CreateEndpointGroupRequestEndpointConfigurations setWeight(Integer weight)
public Integer getWeight()
Copyright © 2024. All rights reserved.