Class ResourceReference
- java.lang.Object
-
- com.adyen.model.transactionwebhooks.ResourceReference
-
public class ResourceReference extends Object
ResourceReference
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_REFERENCE
-
Constructor Summary
Constructors Constructor Description ResourceReference()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceReferencedescription(String description)The description of the resource.booleanequals(Object o)Return true if this ResourceReference object is equal to o.static ResourceReferencefromJson(String jsonString)Create an instance of ResourceReference given an JSON stringStringgetDescription()The description of the resource.StringgetId()The unique identifier of the resource.StringgetReference()The reference for the resource.inthashCode()ResourceReferenceid(String id)The unique identifier of the resource.ResourceReferencereference(String reference)The reference for the resource.voidsetDescription(String description)The description of the resource.voidsetId(String id)The unique identifier of the resource.voidsetReference(String reference)The reference for the resource.StringtoJson()Convert an instance of ResourceReference to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public ResourceReference description(String description)
The description of the resource.- Parameters:
description-- Returns:
- the current
ResourceReferenceinstance, allowing for method chaining
-
getDescription
public String getDescription()
The description of the resource.- Returns:
- description
-
setDescription
public void setDescription(String description)
The description of the resource.- Parameters:
description-
-
id
public ResourceReference id(String id)
The unique identifier of the resource.- Parameters:
id-- Returns:
- the current
ResourceReferenceinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the resource.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the resource.- Parameters:
id-
-
reference
public ResourceReference reference(String reference)
The reference for the resource.- Parameters:
reference-- Returns:
- the current
ResourceReferenceinstance, allowing for method chaining
-
getReference
public String getReference()
The reference for the resource.- Returns:
- reference
-
setReference
public void setReference(String reference)
The reference for the resource.- Parameters:
reference-
-
equals
public boolean equals(Object o)
Return true if this ResourceReference object is equal to o.
-
fromJson
public static ResourceReference fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ResourceReference given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ResourceReference
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ResourceReference
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ResourceReference to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-