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 Endpoint
getDefaults()
Returns the default endpoint configuration of the partition.String
getDnsSuffix()
Returns the dns suffix of the partition.String
getPartition()
Returns the name of the partition.String
getPartitionName()
Returns the description of the partition.String
getRegionRegex()
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.boolean
hasRegion(String region)
Returns true if the region is explicitly configured in the partition or if the region matches theregionRegex
of the partition.void
setDefaults(Endpoint defaults)
Sets the default endpoint configuration of the partition.void
setDnsSuffix(String dnsSuffix)
Sets the dns suffix of the partition.void
setPartitionName(String partitionName)
Sets the description of the partition.void
setRegionRegex(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 theregionRegex
of the partition.
-
-