Package com.adyen.model.management
Class Settings
- java.lang.Object
-
- com.adyen.model.management.Settings
-
public class Settings extends Object
Settings
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BANDstatic StringJSON_PROPERTY_ROAMINGstatic StringJSON_PROPERTY_TIMEOUT
-
Constructor Summary
Constructors Constructor Description Settings()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Settingsband(String band)The preferred Wi-Fi band, for use if the terminals support multiple bands.booleanequals(Object o)Return true if this Settings object is equal to o.static SettingsfromJson(String jsonString)Create an instance of Settings given an JSON stringStringgetBand()The preferred Wi-Fi band, for use if the terminals support multiple bands.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.BooleangetRoaming()Indicates whether roaming is enabled on the terminals.IntegergetTimeout()The connection time-out in seconds.inthashCode()SettingsincludeNullValues(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.Settingsroaming(Boolean roaming)Indicates whether roaming is enabled on the terminals.voidsetBand(String band)The preferred Wi-Fi band, for use if the terminals support multiple bands.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetRoaming(Boolean roaming)Indicates whether roaming is enabled on the terminals.voidsetTimeout(Integer timeout)The connection time-out in seconds.Settingstimeout(Integer timeout)The connection time-out in seconds.StringtoJson()Convert an instance of Settings to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_BAND
public static final String JSON_PROPERTY_BAND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROAMING
public static final String JSON_PROPERTY_ROAMING
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIMEOUT
public static final String JSON_PROPERTY_TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
band
public Settings band(String band)
The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz.- Parameters:
band- The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz.- Returns:
- the current
Settingsinstance, allowing for method chaining
-
getBand
public String getBand()
The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz.- Returns:
- band The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz.
-
setBand
public void setBand(String band)
The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz.- Parameters:
band- The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz.
-
roaming
public Settings roaming(Boolean roaming)
Indicates whether roaming is enabled on the terminals.- Parameters:
roaming- Indicates whether roaming is enabled on the terminals.- Returns:
- the current
Settingsinstance, allowing for method chaining
-
getRoaming
public Boolean getRoaming()
Indicates whether roaming is enabled on the terminals.- Returns:
- roaming Indicates whether roaming is enabled on the terminals.
-
setRoaming
public void setRoaming(Boolean roaming)
Indicates whether roaming is enabled on the terminals.- Parameters:
roaming- Indicates whether roaming is enabled on the terminals.
-
timeout
public Settings timeout(Integer timeout)
The connection time-out in seconds. Minimum value: 0.- Parameters:
timeout- The connection time-out in seconds. Minimum value: 0.- Returns:
- the current
Settingsinstance, allowing for method chaining
-
getTimeout
public Integer getTimeout()
The connection time-out in seconds. Minimum value: 0.- Returns:
- timeout The connection time-out in seconds. Minimum value: 0.
-
setTimeout
public void setTimeout(Integer timeout)
The connection time-out in seconds. Minimum value: 0.- Parameters:
timeout- The connection time-out in seconds. Minimum value: 0.
-
includeNullValues
public Settings 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 Settings 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 Settings fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Settings given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Settings
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Settings
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Settings to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-