public class PartitionMetadataProvider extends AbstractRegionMetadataProvider
| Constructor and Description | 
|---|
| PartitionMetadataProvider(List<Partition> partitions) | 
| 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. | 
getRegionByEndpointpublic List<Region> getRegions()
RegionMetadataProviderpublic Region getRegion(String regionName)
RegionMetadataProviderregionName - the name of the region to search forpublic List<Region> getRegionsForService(String serviceName)
RegionMetadataProviderserviceName - The service endpoint prefix which can be retrieved from the
         constant ENDPOINT_PREFIX of the specific service client interface,
         e.g. AmazonEC2.ENDPOINT_PREFIX.Copyright © 2018. All rights reserved.