public class Region extends Object
| Constructor and Description |
|---|
Region(RegionImpl regionImpl) |
| Modifier and Type | Method and Description |
|---|---|
<T extends AmazonWebServiceClient> |
createClient(Class<T> serviceClass,
AWSCredentialsProvider credentials,
ClientConfiguration config)
Creates a new service client of the class given and configures it.
|
boolean |
equals(Object obj) |
Collection<String> |
getAvailableEndpoints()
Returns a immutable collection of all endpoints available in the
metadata.
|
String |
getDomain()
Returns the domain for this region; ex: "amazonaws.com".
|
String |
getName()
The unique system ID for this region; ex: "us-east-1".
|
String |
getPartition()
Returns the partition this region is in.
|
static Region |
getRegion(Regions region)
Returns the region with the id given, or null if it cannot be found in
the current regions.xml file.
|
String |
getServiceEndpoint(String serviceName)
Returns the endpoint for the service given.
|
int |
hashCode() |
boolean |
hasHttpEndpoint(String serviceName)
Returns whether the given service support the http protocol in this region.
|
boolean |
hasHttpsEndpoint(String serviceName)
Returns whether the given service support the https protocol in this region.
|
boolean |
isServiceSupported(String serviceName)
Returns whether the given service is supported in this region.
|
String |
toString() |
public Region(RegionImpl regionImpl)
public static Region getRegion(Regions region)
public String getName()
public String getDomain()
public String getPartition()
public String getServiceEndpoint(String serviceName)
ServiceAbbreviationspublic boolean isServiceSupported(String serviceName)
ServiceAbbreviationspublic boolean hasHttpsEndpoint(String serviceName)
ServiceAbbreviationspublic boolean hasHttpEndpoint(String serviceName)
ServiceAbbreviationspublic Collection<String> getAvailableEndpoints()
public <T extends AmazonWebServiceClient> T createClient(Class<T> serviceClass, AWSCredentialsProvider credentials, ClientConfiguration config)
serviceClass - The service client class to instantiate, e.g. AmazonS3Client.classcredentials - The credentials provider to use, or null for the default
credentials providerconfig - The configuration to use, or null for the default
configurationServiceAbbreviationsCopyright © 2017. All rights reserved.