Package com.adyen.model.transfers
Class Link
- java.lang.Object
-
- com.adyen.model.transfers.Link
-
public class Link extends Object
Link
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_HREF
-
Constructor Summary
Constructors Constructor Description Link()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this Link object is equal to o.static LinkfromJson(String jsonString)Create an instance of Link given an JSON stringStringgetHref()The link to the resource.inthashCode()Linkhref(String href)voidsetHref(String href)The link to the resource.StringtoJson()Convert an instance of Link to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_HREF
public static final String JSON_PROPERTY_HREF
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHref
public String getHref()
The link to the resource.- Returns:
- href
-
setHref
public void setHref(String href)
The link to the resource.- Parameters:
href-
-
equals
public boolean equals(Object o)
Return true if this Link object is equal to o.
-
fromJson
public static Link fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Link given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Link
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Link
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Link to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-