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 |
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 getServiceEndpoint(String serviceName)
ServiceAbbreviations
public boolean isServiceSupported(String serviceName)
ServiceAbbreviations
public boolean hasHttpsEndpoint(String serviceName)
ServiceAbbreviations
public boolean hasHttpEndpoint(String serviceName)
ServiceAbbreviations
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
configurationServiceAbbreviations
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.