Package com.adyen.model.reportwebhooks
Class ResourceReference
- java.lang.Object
-
- com.adyen.model.reportwebhooks.ResourceReference
-
public class ResourceReference extends Object
ResourceReference
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceReference.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_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)booleanequals(Object 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)ResourceReferencereference(String reference)voidsetDescription(String description)voidsetId(String id)voidsetReference(String reference)StringtoJson()Convert an instance of ResourceReference to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public ResourceReference description(String description)
-
getDescription
public String getDescription()
The description of the resource.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
id
public ResourceReference id(String id)
-
getId
public String getId()
The unique identifier of the resource.- Returns:
- id
-
setId
public void setId(String id)
-
reference
public ResourceReference reference(String reference)
-
getReference
public String getReference()
The reference for the resource.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to ResourceReference
-
fromJson
public static ResourceReference fromJson(String jsonString) throws IOException
Create an instance of ResourceReference given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ResourceReference
- Throws:
IOException- if the JSON string is invalid with respect to ResourceReference
-
toJson
public String toJson()
Convert an instance of ResourceReference to an JSON string- Returns:
- JSON string
-
-