Class DefaultServicePartitionMetadata
- java.lang.Object
-
- software.amazon.awssdk.regions.internal.DefaultServicePartitionMetadata
-
- All Implemented Interfaces:
ServicePartitionMetadata
@SdkInternalApi public class DefaultServicePartitionMetadata extends Object implements ServicePartitionMetadata
-
-
Constructor Summary
Constructors Constructor Description DefaultServicePartitionMetadata(String partition, Region globalRegionForPartition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Region>globalRegion()Retrieve the global region associated with this service, in thisServicePartitionMetadata.partition().PartitionMetadatapartition()Retrieve the partition to which this service is known to exist.
-
-
-
Method Detail
-
partition
public PartitionMetadata partition()
Description copied from interface:ServicePartitionMetadataRetrieve the partition to which this service is known to exist.- Specified by:
partitionin interfaceServicePartitionMetadata
-
globalRegion
public Optional<Region> globalRegion()
Description copied from interface:ServicePartitionMetadataRetrieve the global region associated with this service, in thisServicePartitionMetadata.partition(). This will return empty if the service is regionalized in the partition.- Specified by:
globalRegionin interfaceServicePartitionMetadata
-
-