public class InMemoryRegionImpl extends Object implements RegionImpl
RegionImpl
that holds all information in memory.Constructor and Description |
---|
InMemoryRegionImpl(String name,
String domain) |
Modifier and Type | Method and Description |
---|---|
InMemoryRegionImpl |
addEndpoint(String serviceName,
String endpoint) |
InMemoryRegionImpl |
addHttp(String serviceName) |
InMemoryRegionImpl |
addHttps(String serviceName) |
Collection<String> |
getAvailableEndpoints()
Returns an immutable collection of all the endpoints available in the
region
metadata.
|
String |
getDomain()
Returns the domain for this region; ex: "amazonaws.com".
|
String |
getName()
The unique system ID for this region; ex: "us-east-1".
|
String |
getPartition()
Returns the partition this region is in.
|
String |
getServiceEndpoint(String serviceName)
Returns the endpoint for the service given.
|
boolean |
hasHttpEndpoint(String serviceName)
Returns whether the given service support the https protocol in this region.
|
boolean |
hasHttpsEndpoint(String serviceName)
Returns whether the given service support the http protocol in this region.
|
boolean |
isServiceSupported(String serviceName)
Returns whether the given service is supported in this region.
|
public InMemoryRegionImpl addEndpoint(String serviceName, String endpoint)
public InMemoryRegionImpl addHttps(String serviceName)
public InMemoryRegionImpl addHttp(String serviceName)
public String getName()
RegionImpl
getName
in interface RegionImpl
public String getDomain()
RegionImpl
getDomain
in interface RegionImpl
public String getPartition()
RegionImpl
getPartition
in interface RegionImpl
public boolean isServiceSupported(String serviceName)
RegionImpl
isServiceSupported
in interface RegionImpl
serviceName
- The service endpoint prefix which can be retrieved from the
constant ENDPOINT_PREFIX of the specific service client interface,
e.g. AmazonEC2.ENDPOINT_PREFIX.public String getServiceEndpoint(String serviceName)
RegionImpl
getServiceEndpoint
in interface RegionImpl
serviceName
- The service endpoint prefix which can be retrieved from the
constant ENDPOINT_PREFIX of the specific service client interface,
e.g. AmazonEC2.ENDPOINT_PREFIX.public boolean hasHttpsEndpoint(String serviceName)
RegionImpl
hasHttpsEndpoint
in interface RegionImpl
serviceName
- The service endpoint prefix which can be retrieved from the
constant ENDPOINT_PREFIX of the specific service client interface,
e.g. AmazonEC2.ENDPOINT_PREFIX.public boolean hasHttpEndpoint(String serviceName)
RegionImpl
hasHttpEndpoint
in interface RegionImpl
serviceName
- The service endpoint prefix which can be retrieved from the
constant ENDPOINT_PREFIX of the specific service client interface,
e.g. AmazonEC2.ENDPOINT_PREFIX.public Collection<String> getAvailableEndpoints()
RegionImpl
getAvailableEndpoints
in interface RegionImpl
Copyright © 2018. All rights reserved.