Class PartitionRegionImpl
java.lang.Object
com.amazonaws.partitions.PartitionRegionImpl
- All Implemented Interfaces:
RegionImpl
A region implementation backed by the partition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 given service.booleanhasHttpEndpoint(String serviceName) Returns true if the service is explicitly enabled for http in this region or a service is partition wide enabled.booleanhasHttpsEndpoint(String serviceName) Returns true if the service is explicitly enabled for https in this region or a service is partition wide enabled.booleanisServiceSupported(String serviceName) Returns true if the service is explicitly enabled for a region or a service is partition wide enabled.
-
Constructor Details
-
PartitionRegionImpl
-
-
Method Details
-
getName
Description copied from interface:RegionImplThe unique system ID for this region; ex: "us-east-1".- Specified by:
getNamein interfaceRegionImpl- Returns:
- The unique system ID for this region.
-
getDomain
Description copied from interface:RegionImplReturns the domain for this region; ex: "amazonaws.com".- Specified by:
getDomainin interfaceRegionImpl- Returns:
- The domain for this region.
-
getPartition
Description copied from interface:RegionImplReturns the partition this region is in. I.E. 'aws' or 'aws-cn'- Specified by:
getPartitionin interfaceRegionImpl- Returns:
- The partition this region is in.
-
getServiceEndpoint
Returns the endpoint for the given service. If the region is not present under service configuration; but matches the region regex, then this system tries to guess the endpoint and returns it.- Specified by:
getServiceEndpointin interfaceRegionImpl- See Also:
-
isServiceSupported
Returns true if the service is explicitly enabled for a region or a service is partition wide enabled. Returns false otherwise. For new regions that match the partition's region regex, if the service is enabled partition wide then this method will return true.- Specified by:
isServiceSupportedin interfaceRegionImpl- See Also:
-
hasHttpsEndpoint
Returns true if the service is explicitly enabled for https in this region or a service is partition wide enabled. Returns false otherwise. For new regions that match the partition's region regex, if the service is enabled partition wide then this method will return true.- Specified by:
hasHttpsEndpointin interfaceRegionImpl- See Also:
-
hasHttpEndpoint
Returns true if the service is explicitly enabled for http in this region or a service is partition wide enabled. Returns false otherwise. For new regions that match the partition's region regex, if the service is enabled partition wide then this method will return true.- Specified by:
hasHttpEndpointin interfaceRegionImpl- See Also:
-
getAvailableEndpoints
Description copied from interface:RegionImplReturns an immutable collection of all the endpoints available in the region metadata.- Specified by:
getAvailableEndpointsin interfaceRegionImpl
-