|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.regions.RegionMetadata
public class RegionMetadata
A collection of metadata about a set of regions and the services they contain.
RegionUtils
Constructor Summary | |
---|---|
RegionMetadata(java.util.List<Region> regions)
Creates a new RegionMetadata object from the given list of regions. |
Method Summary | |
---|---|
Region |
getRegion(java.lang.String name)
Returns the region with the name given, if it exists. |
Region |
getRegionByEndpoint(java.lang.String endpoint)
Searches through all known regions to find one with any service at the specified endpoint. |
java.util.List<Region> |
getRegions()
Returns an immutable list of all regions known to this region metadata object, in no particular order. |
java.util.List<Region> |
getRegionsForService(java.lang.String service)
Returns a list of the regions that support the service given. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RegionMetadata(java.util.List<Region> regions)
regions
- the list of regionsMethod Detail |
---|
public java.util.List<Region> getRegions()
public Region getRegion(java.lang.String name)
name
- the name of the region to search for
public java.util.List<Region> getRegionsForService(java.lang.String service)
service
- the service abbreviation to search for
ServiceAbbreviations
public Region getRegionByEndpoint(java.lang.String endpoint)
endpoint
- The endpoint for any service residing in the desired region.
java.lang.IllegalArgumentException
- If the given URL is malformed, or if the one of the service
URLs on record is malformed.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |