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 stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetLivePrefix()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()DataCenterincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.DataCenterlivePrefix(String livePrefix)The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint.DataCentername(String name)The name assigned to a data center, for example **EU** for the European data center.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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)
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- 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:
- the current
DataCenterinstance, allowing for method chaining
-
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 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.
-
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- 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.
-
name
public DataCenter name(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- 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:
- the current
DataCenterinstance, allowing for method chaining
-
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 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**
-
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- 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**
-
includeNullValues
public DataCenter includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this DataCenter object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-