Package com.adyen.model.management
Class DataCenter
- java.lang.Object
-
- com.adyen.model.management.DataCenter
-
public class DataCenter extends Object
DataCenter
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_LIVE_PREFIXstatic StringJSON_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description DataCenter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this DataCenter object is equal to o.static DataCenterfromJson(String jsonString)Create an instance of DataCenter given an JSON stringStringgetLivePrefix()The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint.StringgetName()The name assigned to a data center, for example **EU** for the European data center.inthashCode()DataCenterlivePrefix(String livePrefix)DataCentername(String name)voidsetLivePrefix(String livePrefix)The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint.voidsetName(String name)The name assigned to a data center, for example **EU** for the European data center.StringtoJson()Convert an instance of DataCenter to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_LIVE_PREFIX
public static final String JSON_PROPERTY_LIVE_PREFIX
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
livePrefix
public DataCenter livePrefix(String livePrefix)
-
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-
-
name
public DataCenter name(String name)
-
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.
-
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
-
-