Package com.adyen.model.management
Class AndroidCertificate
- java.lang.Object
-
- com.adyen.model.management.AndroidCertificate
-
public class AndroidCertificate extends Object
AndroidCertificate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidCertificate.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_EXTENSIONstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_NOT_AFTERstatic StringSERIALIZED_NAME_NOT_BEFOREstatic StringSERIALIZED_NAME_STATUS
-
Constructor Summary
Constructors Constructor Description AndroidCertificate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AndroidCertificatedescription(String description)booleanequals(Object o)AndroidCertificateextension(String extension)static AndroidCertificatefromJson(String jsonString)Create an instance of AndroidCertificate given an JSON stringStringgetDescription()The description that was provided when uploading the certificate.StringgetExtension()The file format of the certificate, as indicated by the file extension.StringgetId()The unique identifier of the certificate.StringgetName()The file name of the certificate.OffsetDateTimegetNotAfter()The date when the certificate stops to be valid.OffsetDateTimegetNotBefore()The date when the certificate starts to be valid.StringgetStatus()The status of the certificate.inthashCode()AndroidCertificateid(String id)AndroidCertificatename(String name)AndroidCertificatenotAfter(OffsetDateTime notAfter)AndroidCertificatenotBefore(OffsetDateTime notBefore)voidsetDescription(String description)voidsetExtension(String extension)voidsetId(String id)voidsetName(String name)voidsetNotAfter(OffsetDateTime notAfter)voidsetNotBefore(OffsetDateTime notBefore)voidsetStatus(String status)AndroidCertificatestatus(String status)StringtoJson()Convert an instance of AndroidCertificate 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_EXTENSION
public static final String SERIALIZED_NAME_EXTENSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NOT_AFTER
public static final String SERIALIZED_NAME_NOT_AFTER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NOT_BEFORE
public static final String SERIALIZED_NAME_NOT_BEFORE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public AndroidCertificate description(String description)
-
getDescription
public String getDescription()
The description that was provided when uploading the certificate.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
extension
public AndroidCertificate extension(String extension)
-
getExtension
public String getExtension()
The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**.- Returns:
- extension
-
setExtension
public void setExtension(String extension)
-
id
public AndroidCertificate id(String id)
-
getId
public String getId()
The unique identifier of the certificate.- Returns:
- id
-
setId
public void setId(String id)
-
name
public AndroidCertificate name(String name)
-
getName
public String getName()
The file name of the certificate. For example, **mycert**.- Returns:
- name
-
setName
public void setName(String name)
-
notAfter
public AndroidCertificate notAfter(OffsetDateTime notAfter)
-
getNotAfter
public OffsetDateTime getNotAfter()
The date when the certificate stops to be valid.- Returns:
- notAfter
-
setNotAfter
public void setNotAfter(OffsetDateTime notAfter)
-
notBefore
public AndroidCertificate notBefore(OffsetDateTime notBefore)
-
getNotBefore
public OffsetDateTime getNotBefore()
The date when the certificate starts to be valid.- Returns:
- notBefore
-
setNotBefore
public void setNotBefore(OffsetDateTime notBefore)
-
status
public AndroidCertificate status(String status)
-
getStatus
public String getStatus()
The status of the certificate.- Returns:
- status
-
setStatus
public void setStatus(String status)
-
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 AndroidCertificate
-
fromJson
public static AndroidCertificate fromJson(String jsonString) throws IOException
Create an instance of AndroidCertificate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AndroidCertificate
- Throws:
IOException- if the JSON string is invalid with respect to AndroidCertificate
-
toJson
public String toJson()
Convert an instance of AndroidCertificate to an JSON string- Returns:
- JSON string
-
-