Package com.amazonaws.partitions
Class PartitionMetadataProvider
- java.lang.Object
-
- com.amazonaws.regions.AbstractRegionMetadataProvider
-
- com.amazonaws.partitions.PartitionMetadataProvider
-
- All Implemented Interfaces:
RegionMetadataProvider
public class PartitionMetadataProvider extends AbstractRegionMetadataProvider
Region metadata provider based on partitions.
-
-
Constructor Summary
Constructors Constructor Description PartitionMetadataProvider(List<Partition> partitions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.amazonaws.regions.AbstractRegionMetadataProvider
getRegionByEndpoint
-
-
-
-
Method Detail
-
getRegions
public List<Region> getRegions()
Description copied from interface:RegionMetadataProvider
Returns an immutable list of all regions known to this region metadata object, in no particular order.- Returns:
- an immutable list of all regions
-
getRegion
public Region getRegion(String regionName)
Description copied from interface:RegionMetadataProvider
Returns the region with the name given, if it exists in the metadata or if it can be derived from the metadata. Otherwise, returns null.- Parameters:
regionName
- the name of the region to search for- Returns:
- the corresponding region, if it exists or derived.
-
getRegionsForService
public List<Region> getRegionsForService(String serviceName)
Description copied from interface:RegionMetadataProvider
Returns a list of the regions that support the service given.- Parameters:
serviceName
- the service abbreviation to search for- Returns:
- the list of regions with support for the given service
- See Also:
ServiceAbbreviations
-
-