public class Partition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Endpoint |
defaults
default endpoint configuration.
|
private java.lang.String |
dnsSuffix
dns suffix for the endpoints in the partition.
|
private java.lang.String |
partition
The name of the partition.
|
private java.lang.String |
partitionName
description of the partition.
|
private java.lang.String |
regionRegex
region name regex for regions in the partition.
|
private java.util.Map<java.lang.String,Region> |
regions
Supported regions.
|
private java.util.Map<java.lang.String,Service> |
services
Supported services;
|
Constructor and Description |
---|
Partition(java.lang.String partition,
java.util.Map<java.lang.String,Region> regions,
java.util.Map<java.lang.String,Service> services) |
Modifier and Type | Method and Description |
---|---|
Endpoint |
getDefaults()
Returns the default endpoint configuration of the partition.
|
java.lang.String |
getDnsSuffix()
Returns the dns suffix of the partition.
|
java.lang.String |
getPartition()
Returns the name of the partition.
|
java.lang.String |
getPartitionName()
Returns the description of the partition.
|
java.lang.String |
getRegionRegex()
Returns the regex for the regions in the partition.
|
java.util.Map<java.lang.String,Region> |
getRegions()
Returns the set of regions associated with the partition.
|
java.util.Map<java.lang.String,Service> |
getServices()
Returns the set of services supported by the partition.
|
boolean |
hasRegion(java.lang.String region)
Returns true if the region is explicitly configured in the partition
or if the region matches the
regionRegex of the partition. |
private boolean |
hasServiceEndpoint(java.lang.String endpoint)
Deprecated.
|
private boolean |
matchesRegionRegex(java.lang.String region) |
void |
setDefaults(Endpoint defaults)
Sets the default endpoint configuration of the partition.
|
void |
setDnsSuffix(java.lang.String dnsSuffix)
Sets the dns suffix of the partition.
|
void |
setPartitionName(java.lang.String partitionName)
Sets the description of the partition.
|
void |
setRegionRegex(java.lang.String regionRegex)
Sets the regex for the regions in the partition.
|
private final java.lang.String partition
private final java.util.Map<java.lang.String,Region> regions
private final java.util.Map<java.lang.String,Service> services
private java.lang.String partitionName
private java.lang.String dnsSuffix
private java.lang.String regionRegex
private Endpoint defaults
public java.lang.String getPartition()
public java.lang.String getPartitionName()
public void setPartitionName(java.lang.String partitionName)
public java.lang.String getDnsSuffix()
public void setDnsSuffix(java.lang.String dnsSuffix)
public java.lang.String getRegionRegex()
public void setRegionRegex(java.lang.String regionRegex)
public Endpoint getDefaults()
public void setDefaults(Endpoint defaults)
public java.util.Map<java.lang.String,Region> getRegions()
public java.util.Map<java.lang.String,Service> getServices()
public boolean hasRegion(java.lang.String region)
regionRegex
of the partition.private boolean matchesRegionRegex(java.lang.String region)
@Deprecated private boolean hasServiceEndpoint(java.lang.String endpoint)