public class InMemoryRegionsProvider extends AbstractRegionMetadataProvider
Constructor and Description |
---|
InMemoryRegionsProvider(List<Region> regions) |
Modifier and Type | Method and Description |
---|---|
Region |
getRegion(String regionName)
Returns the region with the name given, if it exists in the metadata
or if it can be derived from the metadata.
|
List<Region> |
getRegions()
Returns an immutable list of all regions known to this region metadata
object, in no particular order.
|
List<Region> |
getRegionsForService(String serviceName)
Returns a list of the regions that support the service given.
|
String |
toString() |
getRegionByEndpoint
public List<Region> getRegions()
RegionMetadataProvider
public Region getRegion(String regionName)
RegionMetadataProvider
regionName
- the name of the region to search forpublic List<Region> getRegionsForService(String serviceName)
RegionMetadataProvider
serviceName
- the service abbreviation to search forServiceAbbreviations
Copyright © 2016. All rights reserved.