public class DefaultEndpointConfiguration extends Object
DefaultEndpointConfiguration provides a way to construct the host endpoint for a service given a template and some variables based on the default Oracle Cloud Infrastructure naming convention.
The available variables are: - {serviceEndpointPrefix} : The service prefix in the URL. - {region} : The public region id, ex, "us-phoenix-1". - {secondLevelDomain} : The second level domain associated with the Realm.
Modifier and Type | Method and Description |
---|---|
String |
build()
Builds the final endpoint based on the variables provided.
|
static DefaultEndpointConfiguration |
builder(String endpointTemplate)
Creates a new builder starting with the given template.
|
DefaultEndpointConfiguration |
endpointServiceName(String endpointServiceName)
Sets the endpoint service name, if one.
|
DefaultEndpointConfiguration |
regionId(String regionId)
Sets the regionId, if one.
|
DefaultEndpointConfiguration |
secondLevelDomain(String secondLevelDomain)
Sets the second level domain, if one.
|
DefaultEndpointConfiguration |
serviceEndpointPrefix(String serviceEndpointPrefix)
Sets the service endpoint prefix, if one.
|
public static DefaultEndpointConfiguration builder(@Nonnull String endpointTemplate)
Creates a new builder starting with the given template.
endpointTemplate
- The templatepublic DefaultEndpointConfiguration serviceEndpointPrefix(String serviceEndpointPrefix)
Sets the service endpoint prefix, if one.
serviceEndpointPrefix
- The service endpoint prefix.public DefaultEndpointConfiguration regionId(String regionId)
Sets the regionId, if one.
regionId
- The region id.public DefaultEndpointConfiguration secondLevelDomain(String secondLevelDomain)
Sets the second level domain, if one.
secondLevelDomain
- The second level domain of the Realm.public DefaultEndpointConfiguration endpointServiceName(String endpointServiceName)
Sets the endpoint service name, if one.
endpointServiceName
- The endpoint service name.public String build()
Builds the final endpoint based on the variables provided.
Copyright © 2016–2024. All rights reserved.