Package com.adyen.model.management
Class DataCenter
- java.lang.Object
-
- com.adyen.model.management.DataCenter
-
public class DataCenter extends Object
DataCenter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataCenter.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_LIVE_PREFIXstatic StringSERIALIZED_NAME_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)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)voidsetName(String name)StringtoJson()Convert an instance of DataCenter to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LIVE_PREFIX
public static final String SERIALIZED_NAME_LIVE_PREFIX
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_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)
-
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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to DataCenter
-
fromJson
public static DataCenter fromJson(String jsonString) throws IOException
Create an instance of DataCenter given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DataCenter
- Throws:
IOException- if the JSON string is invalid with respect to DataCenter
-
toJson
public String toJson()
Convert an instance of DataCenter to an JSON string- Returns:
- JSON string
-
-