Package com.adyen.model.reportwebhooks
Class Resource
- java.lang.Object
-
- com.adyen.model.reportwebhooks.Resource
-
public class Resource extends Object
Resource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResource.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BALANCE_PLATFORMstatic StringSERIALIZED_NAME_CREATION_DATEstatic StringSERIALIZED_NAME_ID
-
Constructor Summary
Constructors Constructor Description Resource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourcebalancePlatform(String balancePlatform)ResourcecreationDate(OffsetDateTime creationDate)booleanequals(Object o)static ResourcefromJson(String jsonString)Create an instance of Resource given an JSON stringStringgetBalancePlatform()The unique identifier of the balance platform.OffsetDateTimegetCreationDate()The date and time when the event was triggered, in ISO 8601 extended format.StringgetId()The ID of the resource.inthashCode()Resourceid(String id)voidsetBalancePlatform(String balancePlatform)voidsetCreationDate(OffsetDateTime creationDate)voidsetId(String id)StringtoJson()Convert an instance of Resource 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_BALANCE_PLATFORM
public static final String SERIALIZED_NAME_BALANCE_PLATFORM
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATION_DATE
public static final String SERIALIZED_NAME_CREATION_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBalancePlatform
public String getBalancePlatform()
The unique identifier of the balance platform.- Returns:
- balancePlatform
-
setBalancePlatform
public void setBalancePlatform(String balancePlatform)
-
creationDate
public Resource creationDate(OffsetDateTime creationDate)
-
getCreationDate
public OffsetDateTime getCreationDate()
The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.- Returns:
- creationDate
-
setCreationDate
public void setCreationDate(OffsetDateTime creationDate)
-
getId
public String getId()
The ID of the resource.- Returns:
- id
-
setId
public void setId(String id)
-
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 Resource
-
fromJson
public static Resource fromJson(String jsonString) throws IOException
Create an instance of Resource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Resource
- Throws:
IOException- if the JSON string is invalid with respect to Resource
-
toJson
public String toJson()
Convert an instance of Resource to an JSON string- Returns:
- JSON string
-
-