Package com.adyen.model.management
Class AndroidCertificate
- java.lang.Object
-
- com.adyen.model.management.AndroidCertificate
-
public class AndroidCertificate extends Object
AndroidCertificate
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_EXTENSIONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_NOT_AFTERstatic StringJSON_PROPERTY_NOT_BEFOREstatic StringJSON_PROPERTY_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)The description that was provided when uploading the certificate.booleanequals(Object o)Return true if this AndroidCertificate object is equal to o.AndroidCertificateextension(String extension)The file format of the certificate, as indicated by the file 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)The unique identifier of the certificate.AndroidCertificatename(String name)The file name of the certificate.AndroidCertificatenotAfter(OffsetDateTime notAfter)The date when the certificate stops to be valid.AndroidCertificatenotBefore(OffsetDateTime notBefore)The date when the certificate starts to be valid.voidsetDescription(String description)The description that was provided when uploading the certificate.voidsetExtension(String extension)The file format of the certificate, as indicated by the file extension.voidsetId(String id)The unique identifier of the certificate.voidsetName(String name)The file name of the certificate.voidsetNotAfter(OffsetDateTime notAfter)The date when the certificate stops to be valid.voidsetNotBefore(OffsetDateTime notBefore)The date when the certificate starts to be valid.voidsetStatus(String status)The status of the certificate.AndroidCertificatestatus(String status)The status of the certificate.StringtoJson()Convert an instance of AndroidCertificate to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXTENSION
public static final String JSON_PROPERTY_EXTENSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NOT_AFTER
public static final String JSON_PROPERTY_NOT_AFTER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NOT_BEFORE
public static final String JSON_PROPERTY_NOT_BEFORE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public AndroidCertificate description(String description)
The description that was provided when uploading the certificate.- Parameters:
description-- Returns:
- the current
AndroidCertificateinstance, allowing for method chaining
-
getDescription
public String getDescription()
The description that was provided when uploading the certificate.- Returns:
- description
-
setDescription
public void setDescription(String description)
The description that was provided when uploading the certificate.- Parameters:
description-
-
extension
public AndroidCertificate extension(String extension)
The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**.- Parameters:
extension-- Returns:
- the current
AndroidCertificateinstance, allowing for method chaining
-
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)
The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**.- Parameters:
extension-
-
id
public AndroidCertificate id(String id)
The unique identifier of the certificate.- Parameters:
id-- Returns:
- the current
AndroidCertificateinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the certificate.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the certificate.- Parameters:
id-
-
name
public AndroidCertificate name(String name)
The file name of the certificate. For example, **mycert**.- Parameters:
name-- Returns:
- the current
AndroidCertificateinstance, allowing for method chaining
-
getName
public String getName()
The file name of the certificate. For example, **mycert**.- Returns:
- name
-
setName
public void setName(String name)
The file name of the certificate. For example, **mycert**.- Parameters:
name-
-
notAfter
public AndroidCertificate notAfter(OffsetDateTime notAfter)
The date when the certificate stops to be valid.- Parameters:
notAfter-- Returns:
- the current
AndroidCertificateinstance, allowing for method chaining
-
getNotAfter
public OffsetDateTime getNotAfter()
The date when the certificate stops to be valid.- Returns:
- notAfter
-
setNotAfter
public void setNotAfter(OffsetDateTime notAfter)
The date when the certificate stops to be valid.- Parameters:
notAfter-
-
notBefore
public AndroidCertificate notBefore(OffsetDateTime notBefore)
The date when the certificate starts to be valid.- Parameters:
notBefore-- Returns:
- the current
AndroidCertificateinstance, allowing for method chaining
-
getNotBefore
public OffsetDateTime getNotBefore()
The date when the certificate starts to be valid.- Returns:
- notBefore
-
setNotBefore
public void setNotBefore(OffsetDateTime notBefore)
The date when the certificate starts to be valid.- Parameters:
notBefore-
-
status
public AndroidCertificate status(String status)
The status of the certificate.- Parameters:
status-- Returns:
- the current
AndroidCertificateinstance, allowing for method chaining
-
getStatus
public String getStatus()
The status of the certificate.- Returns:
- status
-
setStatus
public void setStatus(String status)
The status of the certificate.- Parameters:
status-
-
equals
public boolean equals(Object o)
Return true if this AndroidCertificate object is equal to o.
-
fromJson
public static AndroidCertificate fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AndroidCertificate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AndroidCertificate
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AndroidCertificate
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AndroidCertificate to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-