@Immutable public final class RegionSet extends Object
A region-set can contain one or more comma-separated AWS regions, or a single wildcard to represent all regions ("global"). Whitespace is trimmed from entries of the set.
Examples of region-sets:
| Modifier and Type | Field and Description |
|---|---|
static RegionSet |
GLOBAL
The "Global" region, which is represented with a single wildcard character: "*".
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
asSet()
Gets the set of strings that represent this RegionSet.
|
String |
asString()
Gets the string representation of this RegionSet.
|
static RegionSet |
create(Collection<String> regions)
Creates a RegionSet from the supplied collection.
|
static RegionSet |
create(String value)
Creates a RegionSet with the supplied region-set string.
|
boolean |
equals(Object o) |
int |
hashCode() |
public static final RegionSet GLOBAL
public String asString()
public static RegionSet create(String value)
value - See class documentation RegionSet for the expected format.public static RegionSet create(Collection<String> regions)
regions - A collection of regions.Copyright © 2023. All rights reserved.