public class Partition extends Object
Constructor and Description |
---|
Partition(String partition,
Map<String,Region> regions,
Map<String,Service> services) |
Modifier and Type | Method and 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 the
regionRegex 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.
|
public String getPartition()
public String getPartitionName()
public void setPartitionName(String partitionName)
public String getDnsSuffix()
public void setDnsSuffix(String dnsSuffix)
public String getRegionRegex()
public void setRegionRegex(String regionRegex)
public Endpoint getDefaults()
public void setDefaults(Endpoint defaults)
public Map<String,Region> getRegions()
public Map<String,Service> getServices()
public boolean hasRegion(String region)
regionRegex
of the partition.Copyright © 2022. All rights reserved.