All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.route53domains.model.CountryCode Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Route53 module holds the client classes that are used for communicating with Amazon Route53 Domain Service

There is a newer version: 2.29.17
Show newest version
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.route53domains.model;

import java.util.EnumSet;
import java.util.Map;
import java.util.Set;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.utils.internal.EnumUtils;

@Generated("software.amazon.awssdk:codegen")
public enum CountryCode {
    AC("AC"),

    AD("AD"),

    AE("AE"),

    AF("AF"),

    AG("AG"),

    AI("AI"),

    AL("AL"),

    AM("AM"),

    AN("AN"),

    AO("AO"),

    AQ("AQ"),

    AR("AR"),

    AS("AS"),

    AT("AT"),

    AU("AU"),

    AW("AW"),

    AX("AX"),

    AZ("AZ"),

    BA("BA"),

    BB("BB"),

    BD("BD"),

    BE("BE"),

    BF("BF"),

    BG("BG"),

    BH("BH"),

    BI("BI"),

    BJ("BJ"),

    BL("BL"),

    BM("BM"),

    BN("BN"),

    BO("BO"),

    BQ("BQ"),

    BR("BR"),

    BS("BS"),

    BT("BT"),

    BV("BV"),

    BW("BW"),

    BY("BY"),

    BZ("BZ"),

    CA("CA"),

    CC("CC"),

    CD("CD"),

    CF("CF"),

    CG("CG"),

    CH("CH"),

    CI("CI"),

    CK("CK"),

    CL("CL"),

    CM("CM"),

    CN("CN"),

    CO("CO"),

    CR("CR"),

    CU("CU"),

    CV("CV"),

    CW("CW"),

    CX("CX"),

    CY("CY"),

    CZ("CZ"),

    DE("DE"),

    DJ("DJ"),

    DK("DK"),

    DM("DM"),

    DO("DO"),

    DZ("DZ"),

    EC("EC"),

    EE("EE"),

    EG("EG"),

    EH("EH"),

    ER("ER"),

    ES("ES"),

    ET("ET"),

    FI("FI"),

    FJ("FJ"),

    FK("FK"),

    FM("FM"),

    FO("FO"),

    FR("FR"),

    GA("GA"),

    GB("GB"),

    GD("GD"),

    GE("GE"),

    GF("GF"),

    GG("GG"),

    GH("GH"),

    GI("GI"),

    GL("GL"),

    GM("GM"),

    GN("GN"),

    GP("GP"),

    GQ("GQ"),

    GR("GR"),

    GS("GS"),

    GT("GT"),

    GU("GU"),

    GW("GW"),

    GY("GY"),

    HK("HK"),

    HM("HM"),

    HN("HN"),

    HR("HR"),

    HT("HT"),

    HU("HU"),

    ID("ID"),

    IE("IE"),

    IL("IL"),

    IM("IM"),

    IN("IN"),

    IO("IO"),

    IQ("IQ"),

    IR("IR"),

    IS("IS"),

    IT("IT"),

    JE("JE"),

    JM("JM"),

    JO("JO"),

    JP("JP"),

    KE("KE"),

    KG("KG"),

    KH("KH"),

    KI("KI"),

    KM("KM"),

    KN("KN"),

    KP("KP"),

    KR("KR"),

    KW("KW"),

    KY("KY"),

    KZ("KZ"),

    LA("LA"),

    LB("LB"),

    LC("LC"),

    LI("LI"),

    LK("LK"),

    LR("LR"),

    LS("LS"),

    LT("LT"),

    LU("LU"),

    LV("LV"),

    LY("LY"),

    MA("MA"),

    MC("MC"),

    MD("MD"),

    ME("ME"),

    MF("MF"),

    MG("MG"),

    MH("MH"),

    MK("MK"),

    ML("ML"),

    MM("MM"),

    MN("MN"),

    MO("MO"),

    MP("MP"),

    MQ("MQ"),

    MR("MR"),

    MS("MS"),

    MT("MT"),

    MU("MU"),

    MV("MV"),

    MW("MW"),

    MX("MX"),

    MY("MY"),

    MZ("MZ"),

    NA("NA"),

    NC("NC"),

    NE("NE"),

    NF("NF"),

    NG("NG"),

    NI("NI"),

    NL("NL"),

    NO("NO"),

    NP("NP"),

    NR("NR"),

    NU("NU"),

    NZ("NZ"),

    OM("OM"),

    PA("PA"),

    PE("PE"),

    PF("PF"),

    PG("PG"),

    PH("PH"),

    PK("PK"),

    PL("PL"),

    PM("PM"),

    PN("PN"),

    PR("PR"),

    PS("PS"),

    PT("PT"),

    PW("PW"),

    PY("PY"),

    QA("QA"),

    RE("RE"),

    RO("RO"),

    RS("RS"),

    RU("RU"),

    RW("RW"),

    SA("SA"),

    SB("SB"),

    SC("SC"),

    SD("SD"),

    SE("SE"),

    SG("SG"),

    SH("SH"),

    SI("SI"),

    SJ("SJ"),

    SK("SK"),

    SL("SL"),

    SM("SM"),

    SN("SN"),

    SO("SO"),

    SR("SR"),

    SS("SS"),

    ST("ST"),

    SV("SV"),

    SX("SX"),

    SY("SY"),

    SZ("SZ"),

    TC("TC"),

    TD("TD"),

    TF("TF"),

    TG("TG"),

    TH("TH"),

    TJ("TJ"),

    TK("TK"),

    TL("TL"),

    TM("TM"),

    TN("TN"),

    TO("TO"),

    TP("TP"),

    TR("TR"),

    TT("TT"),

    TV("TV"),

    TW("TW"),

    TZ("TZ"),

    UA("UA"),

    UG("UG"),

    US("US"),

    UY("UY"),

    UZ("UZ"),

    VA("VA"),

    VC("VC"),

    VE("VE"),

    VG("VG"),

    VI("VI"),

    VN("VN"),

    VU("VU"),

    WF("WF"),

    WS("WS"),

    YE("YE"),

    YT("YT"),

    ZA("ZA"),

    ZM("ZM"),

    ZW("ZW"),

    UNKNOWN_TO_SDK_VERSION(null);

    private static final Map VALUE_MAP = EnumUtils.uniqueIndex(CountryCode.class, CountryCode::toString);

    private final String value;

    private CountryCode(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return String.valueOf(value);
    }

    /**
     * Use this in place of valueOf to convert the raw string returned by the service into the enum value.
     *
     * @param value
     *        real value
     * @return CountryCode corresponding to the value
     */
    public static CountryCode fromValue(String value) {
        if (value == null) {
            return null;
        }
        return VALUE_MAP.getOrDefault(value, UNKNOWN_TO_SDK_VERSION);
    }

    /**
     * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return
     * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}.
     *
     * @return a {@link Set} of known {@link CountryCode}s
     */
    public static Set knownValues() {
        Set knownValues = EnumSet.allOf(CountryCode.class);
        knownValues.remove(UNKNOWN_TO_SDK_VERSION);
        return knownValues;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy