Package com.adyen.model.management
Class NotificationUrl
- java.lang.Object
-
- com.adyen.model.management.NotificationUrl
-
public class NotificationUrl extends Object
NotificationUrl
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_LOCAL_URLSstatic StringJSON_PROPERTY_PUBLIC_URLS
-
Constructor Summary
Constructors Constructor Description NotificationUrl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationUrladdLocalUrlsItem(Url localUrlsItem)NotificationUrladdPublicUrlsItem(Url publicUrlsItem)booleanequals(Object o)Return true if this NotificationUrl object is equal to o.static NotificationUrlfromJson(String jsonString)Create an instance of NotificationUrl given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.List<Url>getLocalUrls()One or more local URLs to send notifications to when using Terminal API.List<Url>getPublicUrls()One or more public URLs to send notifications to when using Terminal API.inthashCode()NotificationUrlincludeNullValues(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.NotificationUrllocalUrls(List<Url> localUrls)One or more local URLs to send notifications to when using Terminal API.NotificationUrlpublicUrls(List<Url> publicUrls)One or more public URLs to send notifications to when using Terminal API.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetLocalUrls(List<Url> localUrls)One or more local URLs to send notifications to when using Terminal API.voidsetPublicUrls(List<Url> publicUrls)One or more public URLs to send notifications to when using Terminal API.StringtoJson()Convert an instance of NotificationUrl to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_LOCAL_URLS
public static final String JSON_PROPERTY_LOCAL_URLS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PUBLIC_URLS
public static final String JSON_PROPERTY_PUBLIC_URLS
- See Also:
- Constant Field Values
-
-
Method Detail
-
localUrls
public NotificationUrl localUrls(List<Url> localUrls)
One or more local URLs to send notifications to when using Terminal API.- Parameters:
localUrls- One or more local URLs to send notifications to when using Terminal API.- Returns:
- the current
NotificationUrlinstance, allowing for method chaining
-
addLocalUrlsItem
public NotificationUrl addLocalUrlsItem(Url localUrlsItem)
-
getLocalUrls
public List<Url> getLocalUrls()
One or more local URLs to send notifications to when using Terminal API.- Returns:
- localUrls One or more local URLs to send notifications to when using Terminal API.
-
setLocalUrls
public void setLocalUrls(List<Url> localUrls)
One or more local URLs to send notifications to when using Terminal API.- Parameters:
localUrls- One or more local URLs to send notifications to when using Terminal API.
-
publicUrls
public NotificationUrl publicUrls(List<Url> publicUrls)
One or more public URLs to send notifications to when using Terminal API.- Parameters:
publicUrls- One or more public URLs to send notifications to when using Terminal API.- Returns:
- the current
NotificationUrlinstance, allowing for method chaining
-
addPublicUrlsItem
public NotificationUrl addPublicUrlsItem(Url publicUrlsItem)
-
getPublicUrls
public List<Url> getPublicUrls()
One or more public URLs to send notifications to when using Terminal API.- Returns:
- publicUrls One or more public URLs to send notifications to when using Terminal API.
-
setPublicUrls
public void setPublicUrls(List<Url> publicUrls)
One or more public URLs to send notifications to when using Terminal API.- Parameters:
publicUrls- One or more public URLs to send notifications to when using Terminal API.
-
includeNullValues
public NotificationUrl 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 NotificationUrl 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 NotificationUrl fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of NotificationUrl given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NotificationUrl
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to NotificationUrl
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of NotificationUrl to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-