public class RegionMetadata extends Object
RegionUtils| Constructor and Description |
|---|
RegionMetadata(List<Region> regions)
Creates a new RegionMetadata object from the given list of regions.
|
| Modifier and Type | Method and Description |
|---|---|
Region |
getRegion(String name)
Returns the region with the name given, if it exists.
|
Region |
getRegionByEndpoint(String endpoint)
Searches through all known regions to find one with any service at the
specified endpoint.
|
List<Region> |
getRegions()
Returns an immutable list of all regions known to this region metadata
object, in no particular order.
|
List<Region> |
getRegionsForService(String service)
Returns a list of the regions that support the service given.
|
String |
toString() |
public List<Region> getRegions()
public Region getRegion(String name)
name - the name of the region to search forpublic List<Region> getRegionsForService(String service)
service - the service abbreviation to search forServiceAbbreviationspublic Region getRegionByEndpoint(String endpoint)
endpoint - The endpoint for any service residing in the desired region.IllegalArgumentException - If the given URL is malformed, or if the one of the service
URLs on record is malformed.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.