Package com.adyen.model.management
Class Settings
- java.lang.Object
-
- com.adyen.model.management.Settings
-
public class Settings extends Object
Settings
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSettings.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BANDstatic StringSERIALIZED_NAME_ROAMINGstatic StringSERIALIZED_NAME_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)booleanequals(Object 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.BooleangetRoaming()Indicates whether roaming is enabled on the terminals.IntegergetTimeout()The connection time-out in seconds.inthashCode()Settingsroaming(Boolean roaming)voidsetBand(String band)voidsetRoaming(Boolean roaming)voidsetTimeout(Integer timeout)Settingstimeout(Integer timeout)StringtoJson()Convert an instance of Settings 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_BAND
public static final String SERIALIZED_NAME_BAND
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ROAMING
public static final String SERIALIZED_NAME_ROAMING
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TIMEOUT
public static final String SERIALIZED_NAME_TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
setBand
public void setBand(String band)
-
getRoaming
public Boolean getRoaming()
Indicates whether roaming is enabled on the terminals.- Returns:
- roaming
-
setRoaming
public void setRoaming(Boolean roaming)
-
getTimeout
public Integer getTimeout()
The connection time-out in seconds. Minimum value: 0.- Returns:
- timeout
-
setTimeout
public void setTimeout(Integer timeout)
-
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 Settings
-
fromJson
public static Settings fromJson(String jsonString) throws IOException
Create an instance of Settings given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Settings
- Throws:
IOException- if the JSON string is invalid with respect to Settings
-
toJson
public String toJson()
Convert an instance of Settings to an JSON string- Returns:
- JSON string
-
-