public class Region
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private RegionImpl |
regionImpl |
Constructor and Description |
---|
Region(RegionImpl regionImpl) |
Modifier and Type | Method and Description |
---|---|
<T extends AmazonWebServiceClient> |
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.util.Collection<java.lang.String> |
getAvailableEndpoints()
Returns a immutable collection of all endpoints available in the
metadata.
|
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".
|
java.lang.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.
|
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() |
private final RegionImpl regionImpl
public Region(RegionImpl regionImpl)
public static Region getRegion(Regions region)
public java.lang.String getName()
public java.lang.String getDomain()
public java.lang.String getPartition()
public java.lang.String getServiceEndpoint(java.lang.String serviceName)
ServiceAbbreviations
public boolean isServiceSupported(java.lang.String serviceName)
ServiceAbbreviations
public boolean hasHttpsEndpoint(java.lang.String serviceName)
ServiceAbbreviations
public boolean hasHttpEndpoint(java.lang.String serviceName)
ServiceAbbreviations
public java.util.Collection<java.lang.String> getAvailableEndpoints()
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
configurationServiceAbbreviations
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object