Package com.adyen.model.management
Class KioskModeSettings
- java.lang.Object
-
- com.adyen.model.management.KioskModeSettings
-
public class KioskModeSettings extends Object
KioskModeSettings
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ALLOWED_APPS_IN_KIOSK_MODEstatic StringJSON_PROPERTY_KIOSK_APP_ON_STARTUP
-
Constructor Summary
Constructors Constructor Description KioskModeSettings()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KioskModeSettingsaddAllowedAppsInKioskModeItem(String allowedAppsInKioskModeItem)KioskModeSettingsallowedAppsInKioskMode(List<String> allowedAppsInKioskMode)List of package names for apps allowed to run in kiosk mode.booleanequals(Object o)Return true if this KioskModeSettings object is equal to o.static KioskModeSettingsfromJson(String jsonString)Create an instance of KioskModeSettings given an JSON stringList<String>getAllowedAppsInKioskMode()List of package names for apps allowed to run in kiosk mode.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetKioskAppOnStartup()The package name of the app to launch on startup.inthashCode()KioskModeSettingsincludeNullValues(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.KioskModeSettingskioskAppOnStartup(String kioskAppOnStartup)The package name of the app to launch on startup.voidsetAllowedAppsInKioskMode(List<String> allowedAppsInKioskMode)List of package names for apps allowed to run in kiosk mode.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetKioskAppOnStartup(String kioskAppOnStartup)The package name of the app to launch on startup.StringtoJson()Convert an instance of KioskModeSettings to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ALLOWED_APPS_IN_KIOSK_MODE
public static final String JSON_PROPERTY_ALLOWED_APPS_IN_KIOSK_MODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_KIOSK_APP_ON_STARTUP
public static final String JSON_PROPERTY_KIOSK_APP_ON_STARTUP
- See Also:
- Constant Field Values
-
-
Method Detail
-
allowedAppsInKioskMode
public KioskModeSettings allowedAppsInKioskMode(List<String> allowedAppsInKioskMode)
List of package names for apps allowed to run in kiosk mode.- Parameters:
allowedAppsInKioskMode- List of package names for apps allowed to run in kiosk mode.- Returns:
- the current
KioskModeSettingsinstance, allowing for method chaining
-
addAllowedAppsInKioskModeItem
public KioskModeSettings addAllowedAppsInKioskModeItem(String allowedAppsInKioskModeItem)
-
getAllowedAppsInKioskMode
public List<String> getAllowedAppsInKioskMode()
List of package names for apps allowed to run in kiosk mode.- Returns:
- allowedAppsInKioskMode List of package names for apps allowed to run in kiosk mode.
-
setAllowedAppsInKioskMode
public void setAllowedAppsInKioskMode(List<String> allowedAppsInKioskMode)
List of package names for apps allowed to run in kiosk mode.- Parameters:
allowedAppsInKioskMode- List of package names for apps allowed to run in kiosk mode.
-
kioskAppOnStartup
public KioskModeSettings kioskAppOnStartup(String kioskAppOnStartup)
The package name of the app to launch on startup. This must be one of the apps included in `allowedAppsInKioskMode`.- Parameters:
kioskAppOnStartup- The package name of the app to launch on startup. This must be one of the apps included in `allowedAppsInKioskMode`.- Returns:
- the current
KioskModeSettingsinstance, allowing for method chaining
-
getKioskAppOnStartup
public String getKioskAppOnStartup()
The package name of the app to launch on startup. This must be one of the apps included in `allowedAppsInKioskMode`.- Returns:
- kioskAppOnStartup The package name of the app to launch on startup. This must be one of the apps included in `allowedAppsInKioskMode`.
-
setKioskAppOnStartup
public void setKioskAppOnStartup(String kioskAppOnStartup)
The package name of the app to launch on startup. This must be one of the apps included in `allowedAppsInKioskMode`.- Parameters:
kioskAppOnStartup- The package name of the app to launch on startup. This must be one of the apps included in `allowedAppsInKioskMode`.
-
includeNullValues
public KioskModeSettings 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 KioskModeSettings 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 KioskModeSettings fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of KioskModeSettings given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of KioskModeSettings
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to KioskModeSettings
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of KioskModeSettings to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-