Enum Continent
- All Implemented Interfaces:
Serializable
,Comparable<Continent>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-27T17:02:09.188Z")
@Stability(Stable)
public enum Continent
extends Enum<Continent>
Continents for geolocation routing.
Example:
HostedZone myZone; // continent // continent ARecord.Builder.create(this, "ARecordGeoLocationContinent") .zone(myZone) .target(RecordTarget.fromIpAddresses("1.2.3.0", "5.6.7.0")) .geoLocation(GeoLocation.continent(Continent.EUROPE)) .build(); // country // country ARecord.Builder.create(this, "ARecordGeoLocationCountry") .zone(myZone) .target(RecordTarget.fromIpAddresses("1.2.3.1", "5.6.7.1")) .geoLocation(GeoLocation.country("DE")) .build(); // subdivision // subdivision ARecord.Builder.create(this, "ARecordGeoLocationSubDividion") .zone(myZone) .target(RecordTarget.fromIpAddresses("1.2.3.2", "5.6.7.2")) .geoLocation(GeoLocation.subdivision("WA")) .build(); // default (wildcard record if no specific record is found) // default (wildcard record if no specific record is found) ARecord.Builder.create(this, "ARecordGeoLocationDefault") .zone(myZone) .target(RecordTarget.fromIpAddresses("1.2.3.3", "5.6.7.3")) .geoLocation(GeoLocation.default()) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAfrica.Antarctica.Asia.Europe.North America.Oceania.South America. -
Method Summary
-
Enum Constant Details
-
AFRICA
Africa. -
ANTARCTICA
Antarctica. -
ASIA
Asia. -
EUROPE
Europe. -
OCEANIA
Oceania. -
NORTH_AMERICA
North America. -
SOUTH_AMERICA
South America.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-