Enum BaseURL

    • Enum Constant Detail

      • GLOBAL

        public static final BaseURL GLOBAL
        The default domain of the Azure Translator API. Datacenters: Closest available datacenter.
      • ASIA_PACIFIC

        public static final BaseURL ASIA_PACIFIC
        The domain of the Azure Translator API for the Asia Pacific. Datacenters: Korea South, Japan East, Southeast Asia, and Australia East.
      • EUROPE

        public static final BaseURL EUROPE
        The domain of the Azure Translator API for the Europe. Datacenters: North Europe and West Europe.
      • UNITED_STATES

        public static final BaseURL UNITED_STATES
        The domain of the Azure Translator API for the United States. Datacenters: East US, South Central US, West Central US, and West US 2
    • Method Detail

      • values

        public static BaseURL[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BaseURL c : BaseURL.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BaseURL 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
      • getUrl

        public String getUrl()
        Gets the URL of the Azure Translator API.
        Returns:
        The URL of the Azure Translator API.