Package software.amazon.awssdk.regions
Class ServiceEndpointKey
- java.lang.Object
-
- software.amazon.awssdk.regions.ServiceEndpointKey
-
@Immutable public final class ServiceEndpointKey extends Object
A ServiceEndpointKey uniquely identifies a service endpoint, and can be used to look up endpoints viaServiceMetadata.endpointFor(ServiceEndpointKey)
.An endpoint is uniquely identified by the
Region
of that service and theEndpointTag
s associated with that endpoint. For example, theEndpointTag.FIPS
endpoint inRegion.US_WEST_2
.This can be created via
builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ServiceEndpointKey.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceEndpointKey.Builder
builder()
Create a builder forServiceEndpointKey
s.boolean
equals(Object o)
int
hashCode()
Region
region()
Retrieve the region associated with the endpoint.Set<EndpointTag>
tags()
Retrieve the tags associated with the endpoint (or the empty set, to use the default endpoint).String
toString()
-
-
-
Method Detail
-
builder
public static ServiceEndpointKey.Builder builder()
Create a builder forServiceEndpointKey
s.
-
region
public Region region()
Retrieve the region associated with the endpoint.
-
tags
public Set<EndpointTag> tags()
Retrieve the tags associated with the endpoint (or the empty set, to use the default endpoint).
-
-