Class Partition


  • public class Partition
    extends Object
    This class models a AWS partition and contains all metadata about it.
    • Method Detail

      • getPartition

        public String getPartition()
        Returns the name of the partition.
      • getPartitionName

        public String getPartitionName()
        Returns the description of the partition.
      • setPartitionName

        public void setPartitionName​(String partitionName)
        Sets the description of the partition.
      • getDnsSuffix

        public String getDnsSuffix()
        Returns the dns suffix of the partition.
      • setDnsSuffix

        public void setDnsSuffix​(String dnsSuffix)
        Sets the dns suffix of the partition.
      • getRegionRegex

        public String getRegionRegex()
        Returns the regex for the regions in the partition.
      • setRegionRegex

        public void setRegionRegex​(String regionRegex)
        Sets the regex for the regions in the partition.
      • getDefaults

        public Endpoint getDefaults()
        Returns the default endpoint configuration of the partition.
      • setDefaults

        public void setDefaults​(Endpoint defaults)
        Sets the default endpoint configuration of the partition.
      • getRegions

        public Map<String,​Region> getRegions()
        Returns the set of regions associated with the partition.
      • getServices

        public Map<String,​Service> getServices()
        Returns the set of services supported by the partition.
      • hasRegion

        public boolean hasRegion​(String region)
        Returns true if the region is explicitly configured in the partition or if the region matches the regionRegex of the partition.