Class SweepConfigurationNotificationRequest
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.SweepConfigurationNotificationRequest
-
public class SweepConfigurationNotificationRequest extends Object
SweepConfigurationNotificationRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSweepConfigurationNotificationRequest.TypeEnumType of webhook.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DATAstatic StringJSON_PROPERTY_ENVIRONMENTstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description SweepConfigurationNotificationRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SweepConfigurationNotificationRequestdata(SweepConfigurationNotificationData data)SweepConfigurationNotificationRequestenvironment(String environment)booleanequals(Object o)Return true if this SweepConfigurationNotificationRequest object is equal to o.static SweepConfigurationNotificationRequestfromJson(String jsonString)Create an instance of SweepConfigurationNotificationRequest given an JSON stringSweepConfigurationNotificationDatagetData()Get dataStringgetEnvironment()The environment from which the webhook originated.SweepConfigurationNotificationRequest.TypeEnumgetType()Type of webhook.inthashCode()voidsetData(SweepConfigurationNotificationData data)datavoidsetEnvironment(String environment)The environment from which the webhook originated.voidsetType(SweepConfigurationNotificationRequest.TypeEnum type)Type of webhook.StringtoJson()Convert an instance of SweepConfigurationNotificationRequest to an JSON stringStringtoString()SweepConfigurationNotificationRequesttype(SweepConfigurationNotificationRequest.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_DATA
public static final String JSON_PROPERTY_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENVIRONMENT
public static final String JSON_PROPERTY_ENVIRONMENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public SweepConfigurationNotificationRequest data(SweepConfigurationNotificationData data)
-
getData
public SweepConfigurationNotificationData getData()
Get data- Returns:
- data
-
setData
public void setData(SweepConfigurationNotificationData data)
data- Parameters:
data-
-
environment
public SweepConfigurationNotificationRequest environment(String environment)
-
getEnvironment
public String getEnvironment()
The environment from which the webhook originated. Possible values: **test**, **live**.- Returns:
- environment
-
setEnvironment
public void setEnvironment(String environment)
The environment from which the webhook originated. Possible values: **test**, **live**.- Parameters:
environment-
-
type
public SweepConfigurationNotificationRequest type(SweepConfigurationNotificationRequest.TypeEnum type)
-
getType
public SweepConfigurationNotificationRequest.TypeEnum getType()
Type of webhook.- Returns:
- type
-
setType
public void setType(SweepConfigurationNotificationRequest.TypeEnum type)
Type of webhook.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this SweepConfigurationNotificationRequest object is equal to o.
-
fromJson
public static SweepConfigurationNotificationRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SweepConfigurationNotificationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SweepConfigurationNotificationRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SweepConfigurationNotificationRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SweepConfigurationNotificationRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-