@Generated(value="software.amazon.awssdk:codegen") public final class EndpointConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EndpointConfiguration.Builder,EndpointConfiguration>
A complex type for endpoints.
Modifier and Type | Class and Description |
---|---|
static interface |
EndpointConfiguration.Builder |
Modifier and Type | Method and Description |
---|---|
static EndpointConfiguration.Builder |
builder() |
String |
endpointId()
An ID for the endpoint.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends EndpointConfiguration.Builder> |
serializableBuilderClass() |
EndpointConfiguration.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Integer |
weight()
The weight associated with the endpoint.
|
copy
public String endpointId()
An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID.
public Integer weight()
The weight associated with the endpoint. When you add weights to endpoints, you configure AWS Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint Weights in the AWS Global Accelerator Developer Guide.
public EndpointConfiguration.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<EndpointConfiguration.Builder,EndpointConfiguration>
public static EndpointConfiguration.Builder builder()
public static Class<? extends EndpointConfiguration.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.