Package com.amazonaws.regions
Class InMemoryRegionImpl
java.lang.Object
com.amazonaws.regions.InMemoryRegionImpl
- All Implemented Interfaces:
RegionImpl
An implementation of
RegionImpl
that holds all information in memory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEndpoint
(String serviceName, String endpoint) Returns an immutable collection of all the endpoints available in the region metadata.Returns the domain for this region; ex: "amazonaws.com".getName()
The unique system ID for this region; ex: "us-east-1".Returns the partition this region is in.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.
-
Constructor Details
-
InMemoryRegionImpl
-
-
Method Details
-
addEndpoint
-
addHttps
-
addHttp
-
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
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
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
Description copied from interface:RegionImpl
Returns whether the given service is supported in this region.- Specified by:
isServiceSupported
in interfaceRegionImpl
- See Also:
-
getServiceEndpoint
Description copied from interface:RegionImpl
Returns the endpoint for the service given.- Specified by:
getServiceEndpoint
in interfaceRegionImpl
- See Also:
-
hasHttpsEndpoint
Description copied from interface:RegionImpl
Returns whether the given service support the http protocol in this region.- Specified by:
hasHttpsEndpoint
in interfaceRegionImpl
- See Also:
-
hasHttpEndpoint
Description copied from interface:RegionImpl
Returns whether the given service support the https protocol in this region.- Specified by:
hasHttpEndpoint
in interfaceRegionImpl
- See Also:
-
getAvailableEndpoints
Description copied from interface:RegionImpl
Returns an immutable collection of all the endpoints available in the region metadata.- Specified by:
getAvailableEndpoints
in interfaceRegionImpl
-