Class DataCenter


  • public class DataCenter
    extends Object
    DataCenter
    • Constructor Detail

      • DataCenter

        public DataCenter()
    • Method Detail

      • getLivePrefix

        public String getLivePrefix()
        The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment.
        Returns:
        livePrefix
      • setLivePrefix

        public void setLivePrefix​(String livePrefix)
        The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment.
        Parameters:
        livePrefix -
      • getName

        public String getName()
        The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US**
        Returns:
        name
      • setName

        public void setName​(String name)
        The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US**
        Parameters:
        name -
      • equals

        public boolean equals​(Object o)
        Return true if this DataCenter object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static DataCenter fromJson​(String jsonString)
                                   throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of DataCenter given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of DataCenter
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to DataCenter
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of DataCenter to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException