Package com.oracle.bmc.internal
Class DefaultEndpointConfiguration
- java.lang.Object
- 
- com.oracle.bmc.internal.DefaultEndpointConfiguration
 
- 
 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. 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbuild()Builds the final endpoint based on the variables provided.static DefaultEndpointConfigurationbuilder(String endpointTemplate)Creates a new builder starting with the given template.DefaultEndpointConfigurationendpointServiceName(String endpointServiceName)Sets the endpoint service name, if one.DefaultEndpointConfigurationregionId(String regionId)Sets the regionId, if one.DefaultEndpointConfigurationsecondLevelDomain(String secondLevelDomain)Sets the second level domain, if one.DefaultEndpointConfigurationserviceEndpointPrefix(String serviceEndpointPrefix)Sets the service endpoint prefix, if one.
 
- 
- 
- 
Method Detail- 
builderpublic static DefaultEndpointConfiguration builder(@Nonnull String endpointTemplate) Creates a new builder starting with the given template.- Parameters:
- endpointTemplate- The template
- Returns:
- A new builder.
 
 - 
serviceEndpointPrefixpublic DefaultEndpointConfiguration serviceEndpointPrefix(String serviceEndpointPrefix) Sets the service endpoint prefix, if one.- Parameters:
- serviceEndpointPrefix- The service endpoint prefix.
- Returns:
- This builder
 
 - 
regionIdpublic DefaultEndpointConfiguration regionId(String regionId) Sets the regionId, if one.- Parameters:
- regionId- The region id.
- Returns:
- This builder
 
 - 
secondLevelDomainpublic DefaultEndpointConfiguration secondLevelDomain(String secondLevelDomain) Sets the second level domain, if one.- Parameters:
- secondLevelDomain- The second level domain of the Realm.
- Returns:
- This builder
 
 - 
endpointServiceNamepublic DefaultEndpointConfiguration endpointServiceName(String endpointServiceName) Sets the endpoint service name, if one.- Parameters:
- endpointServiceName- The endpoint service name.
- Returns:
- This builder
 
 - 
buildpublic String build() Builds the final endpoint based on the variables provided.- Returns:
- The endpoint.
 
 
- 
 
-