|
|||||||
| 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(java.lang.Class<T> serviceClass,
AWSCredentialsProvider credentials,
ClientConfiguration config)
Creates a new service client of the class given and configures it. |
|
boolean |
equals(java.lang.Object obj)
|
|
java.lang.String |
getDomain()
Returns the domain for this region; ex: "amazonaws.com". |
|
java.lang.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. |
|
java.lang.String |
getServiceEndpoint(java.lang.String serviceName)
Returns the endpoint for the service given. |
|
int |
hashCode()
|
|
boolean |
hasHttpEndpoint(java.lang.String serviceName)
Returns whether the given service support the http protocol in this region. |
|
boolean |
hasHttpsEndpoint(java.lang.String serviceName)
Returns whether the given service support the https protocol in this region. |
|
boolean |
isServiceSupported(java.lang.String serviceName)
Returns whether the given service is supported in this region. |
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Region getRegion(Regions region)
public java.lang.String getName()
public java.lang.String getDomain()
public java.lang.String getServiceEndpoint(java.lang.String serviceName)
ServiceAbbreviationspublic boolean isServiceSupported(java.lang.String serviceName)
ServiceAbbreviationspublic boolean hasHttpsEndpoint(java.lang.String serviceName)
ServiceAbbreviationspublic boolean hasHttpEndpoint(java.lang.String serviceName)
ServiceAbbreviations
public <T extends AmazonWebServiceClient> T createClient(java.lang.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
configurationServiceAbbreviationspublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||