public final class Region extends Object
| 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) |
String |
getDomain()
Returns the domain for this region; ex: "amazonaws.com".
|
String |
getName()
The unique system ID for this region; ex: "us-east-1".
|
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 static Region getRegion(Regions region)
public String getName()
public String getDomain()
public String getServiceEndpoint(String serviceName)
ServiceAbbreviationspublic boolean isServiceSupported(String serviceName)
ServiceAbbreviationspublic boolean hasHttpsEndpoint(String serviceName)
ServiceAbbreviationspublic boolean hasHttpEndpoint(String serviceName)
ServiceAbbreviationspublic <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 © 2013 Amazon Web Services, Inc. All Rights Reserved.