public class EndpointBuilder extends Object
EndpointBuilder provides a wrapper to construct the appropriate endpoint for a service. The service may override the endpoint template, but if not, a default template will be used.
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ENDPOINT_TEMPLATE |
| Modifier and Type | Method and Description |
|---|---|
static String |
createEndpoint(Service service,
Region region)
Creates the service endpoint using the
DefaultEndpointConfiguration method. |
static String |
createEndpoint(Service service,
String regionId,
Realm realm)
Creates the service endpoint using the
DefaultEndpointConfiguration method. |
static String |
getRealmSpecificEndpointTemplate(String regionId,
Service service,
Realm realm) |
static String |
getServiceEndpointTemplateToUse(String regionId,
Service service,
Realm realm) |
static void |
overrideRegionId(String regionId,
String overrideRegionId)
Temporary ability to override the region for a given regionId.
|
public static final String DEFAULT_ENDPOINT_TEMPLATE
public static String createEndpoint(@Nonnull Service service, @Nonnull String regionId, @Nonnull Realm realm)
Creates the service endpoint using the DefaultEndpointConfiguration method.
service - The serviceregionId - The regionIdrealm - The realm this region belongs to.public static String getRealmSpecificEndpointTemplate(String regionId, Service service, Realm realm)
public static String getServiceEndpointTemplateToUse(String regionId, Service service, Realm realm)
public static String createEndpoint(@Nonnull Service service, @Nonnull Region region)
Creates the service endpoint using the DefaultEndpointConfiguration method.
service - The serviceregion - The regionpublic static void overrideRegionId(@Nonnull
String regionId,
@Nonnull
String overrideRegionId)
Temporary ability to override the region for a given regionId.
This will most likely be removed at a later point in time. It is not intended for use outside of the SDK.
regionId - The value obtained from Region.getRegionId().overrideRegionId - The alternative regionId to use.Copyright © 2016–2024. All rights reserved.