|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.regions.Region
public final class Region
Metadata for an AWS region, including its name and what services are available in it.
Method Summary | ||
---|---|---|
|
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()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |