Package com.adyen.model.management
Class Timeouts
- java.lang.Object
-
- com.adyen.model.management.Timeouts
-
public class Timeouts extends Object
Timeouts
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_FROM_ACTIVE_TO_SLEEP
-
Constructor Summary
Constructors Constructor Description Timeouts()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this Timeouts object is equal to o.TimeoutsfromActiveToSleep(Integer fromActiveToSleep)Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode.static TimeoutsfromJson(String jsonString)Create an instance of Timeouts given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.IntegergetFromActiveToSleep()Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode.inthashCode()TimeoutsincludeNullValues(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.voidsetFromActiveToSleep(Integer fromActiveToSleep)Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.StringtoJson()Convert an instance of Timeouts to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_FROM_ACTIVE_TO_SLEEP
public static final String JSON_PROPERTY_FROM_ACTIVE_TO_SLEEP
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromActiveToSleep
public Timeouts fromActiveToSleep(Integer fromActiveToSleep)
Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode.- Parameters:
fromActiveToSleep- Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode.- Returns:
- the current
Timeoutsinstance, allowing for method chaining
-
getFromActiveToSleep
public Integer getFromActiveToSleep()
Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode.- Returns:
- fromActiveToSleep Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode.
-
setFromActiveToSleep
public void setFromActiveToSleep(Integer fromActiveToSleep)
Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode.- Parameters:
fromActiveToSleep- Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode.
-
includeNullValues
public Timeouts 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 Timeouts 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 Timeouts fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Timeouts given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Timeouts
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Timeouts
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Timeouts to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-