Package com.amazonaws.partitions.model
Class Partition
- java.lang.Object
-
- com.amazonaws.partitions.model.Partition
-
public class Partition extends Object
This class models a AWS partition and contains all metadata about it.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointgetDefaults()Returns the default endpoint configuration of the partition.StringgetDnsSuffix()Returns the dns suffix of the partition.StringgetPartition()Returns the name of the partition.StringgetPartitionName()Returns the description of the partition.StringgetRegionRegex()Returns the regex for the regions in the partition.Map<String,Region>getRegions()Returns the set of regions associated with the partition.Map<String,Service>getServices()Returns the set of services supported by the partition.booleanhasRegion(String region)Returns true if the region is explicitly configured in the partition or if the region matches theregionRegexof the partition.voidsetDefaults(Endpoint defaults)Sets the default endpoint configuration of the partition.voidsetDnsSuffix(String dnsSuffix)Sets the dns suffix of the partition.voidsetPartitionName(String partitionName)Sets the description of the partition.voidsetRegionRegex(String regionRegex)Sets the regex for the regions in the partition.
-
-
-
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 theregionRegexof the partition.
-
-