Enum Continent

java.lang.Object
java.lang.Enum<Continent>
software.amazon.awscdk.services.route53.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();
 
  • Enum Constant Details

    • AFRICA

      @Stability(Stable) public static final Continent AFRICA
      Africa.
    • ANTARCTICA

      @Stability(Stable) public static final Continent ANTARCTICA
      Antarctica.
    • ASIA

      @Stability(Stable) public static final Continent ASIA
      Asia.
    • EUROPE

      @Stability(Stable) public static final Continent EUROPE
      Europe.
    • OCEANIA

      @Stability(Stable) public static final Continent OCEANIA
      Oceania.
    • NORTH_AMERICA

      @Stability(Stable) public static final Continent NORTH_AMERICA
      North America.
    • SOUTH_AMERICA

      @Stability(Stable) public static final Continent SOUTH_AMERICA
      South America.
  • Method Details

    • values

      public static Continent[] 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

      public static Continent valueOf(String name)
      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 name
      NullPointerException - if the argument is null