public final class Region
extends java.lang.Object
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.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) |
static Region |
getRegion(java.lang.String regionString) |
java.lang.String |
getServiceEndpoint(java.lang.String serviceName) |
int |
hashCode() |
boolean |
hasHttpEndpoint(java.lang.String serviceName) |
boolean |
hasHttpsEndpoint(java.lang.String serviceName) |
boolean |
isServiceSupported(java.lang.String serviceName) |
java.lang.String |
toString() |
public static Region getRegion(Regions region)
region
- the region.public static Region getRegion(java.lang.String regionString)
regionString
- the region represented as a string. i.e. us-east-1public java.lang.String getName()
public java.lang.String getDomain()
public java.lang.String getServiceEndpoint(java.lang.String serviceName)
serviceName
- the service name.ServiceAbbreviations
public boolean isServiceSupported(java.lang.String serviceName)
serviceName
- the service name.ServiceAbbreviations
public boolean hasHttpsEndpoint(java.lang.String serviceName)
serviceName
- the service name.ServiceAbbreviations
public boolean hasHttpEndpoint(java.lang.String serviceName)
serviceName
- the service name.ServiceAbbreviations
public <T extends AmazonWebServiceClient> T createClient(java.lang.Class<T> serviceClass, AWSCredentialsProvider credentials, ClientConfiguration config)
T
- the AmazonWebServiceClient type.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
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.