Package com.amazonaws.regions
Class InMemoryRegionImpl
- java.lang.Object
-
- com.amazonaws.regions.InMemoryRegionImpl
-
- All Implemented Interfaces:
RegionImpl
public class InMemoryRegionImpl extends Object implements RegionImpl
An implementation ofRegionImpl
that holds all information in memory.
-
-
Constructor Summary
Constructors Constructor Description InMemoryRegionImpl(String name, String domain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InMemoryRegionImpl
addEndpoint(String serviceName, String endpoint)
InMemoryRegionImpl
addHttp(String serviceName)
InMemoryRegionImpl
addHttps(String serviceName)
Collection<String>
getAvailableEndpoints()
Returns an immutable collection of all the endpoints available in the region metadata.String
getDomain()
Returns the domain for this region; ex: "amazonaws.com".String
getName()
The unique system ID for this region; ex: "us-east-1".String
getPartition()
Returns the partition this region is in.String
getServiceEndpoint(String serviceName)
Returns the endpoint for the service given.boolean
hasHttpEndpoint(String serviceName)
Returns whether the given service support the https protocol in this region.boolean
hasHttpsEndpoint(String serviceName)
Returns whether the given service support the http protocol in this region.boolean
isServiceSupported(String serviceName)
Returns whether the given service is supported in this region.
-
-
-
Method Detail
-
addEndpoint
public InMemoryRegionImpl addEndpoint(String serviceName, String endpoint)
-
addHttps
public InMemoryRegionImpl addHttps(String serviceName)
-
addHttp
public InMemoryRegionImpl addHttp(String serviceName)
-
getName
public String getName()
Description copied from interface:RegionImpl
The unique system ID for this region; ex: "us-east-1".- Specified by:
getName
in interfaceRegionImpl
- Returns:
- The unique system ID for this region.
-
getDomain
public String getDomain()
Description copied from interface:RegionImpl
Returns the domain for this region; ex: "amazonaws.com".- Specified by:
getDomain
in interfaceRegionImpl
- Returns:
- The domain for this region.
-
getPartition
public String getPartition()
Description copied from interface:RegionImpl
Returns the partition this region is in. I.E. 'aws' or 'aws-cn'- Specified by:
getPartition
in interfaceRegionImpl
- Returns:
- The partition this region is in.
-
isServiceSupported
public boolean isServiceSupported(String serviceName)
Description copied from interface:RegionImpl
Returns whether the given service is supported in this region.- Specified by:
isServiceSupported
in interfaceRegionImpl
- See Also:
ServiceAbbreviations
-
getServiceEndpoint
public String getServiceEndpoint(String serviceName)
Description copied from interface:RegionImpl
Returns the endpoint for the service given.- Specified by:
getServiceEndpoint
in interfaceRegionImpl
- See Also:
ServiceAbbreviations
-
hasHttpsEndpoint
public boolean hasHttpsEndpoint(String serviceName)
Description copied from interface:RegionImpl
Returns whether the given service support the http protocol in this region.- Specified by:
hasHttpsEndpoint
in interfaceRegionImpl
- See Also:
ServiceAbbreviations
-
hasHttpEndpoint
public boolean hasHttpEndpoint(String serviceName)
Description copied from interface:RegionImpl
Returns whether the given service support the https protocol in this region.- Specified by:
hasHttpEndpoint
in interfaceRegionImpl
- See Also:
ServiceAbbreviations
-
getAvailableEndpoints
public Collection<String> getAvailableEndpoints()
Description copied from interface:RegionImpl
Returns an immutable collection of all the endpoints available in the region metadata.- Specified by:
getAvailableEndpoints
in interfaceRegionImpl
-
-