Package com.azure.compute.batch.models
Class GetCertificateResponse
java.lang.Object
com.azure.compute.batch.models.GetCertificateResponse
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GetCertificateResponse>
public final class GetCertificateResponse
extends Object
implements com.azure.json.JsonSerializable<GetCertificateResponse>
The GetCertificateResponse model.
-
Method Summary
Modifier and TypeMethodDescriptionstatic GetCertificateResponse
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of GetCertificateResponse from the JsonReader.Get the deleteCertificateError property: The error that occurred on the last attempt to delete this Certificate.Get the previousState property: The previous state of the Certificate.Get the previousStateTransitionTime property: The time at which the Certificate entered its previous state.Get the publicData property: The public part of the Certificate as a base-64 encoded .cer file.getState()
Get the state property: The state of the Certificate.Get the stateTransitionTime property: The time at which the Certificate entered its current state.Get the thumbprint property: The X.509 thumbprint of the Certificate.Get the thumbprintAlgorithm property: The algorithm used to derive the thumbprint.getUrl()
Get the url property: The URL of the Certificate.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getThumbprint
Get the thumbprint property: The X.509 thumbprint of the Certificate. This is a sequence of up to 40 hex digits (it may include spaces but these are removed).- Returns:
- the thumbprint value.
-
getThumbprintAlgorithm
Get the thumbprintAlgorithm property: The algorithm used to derive the thumbprint. This must be sha1.- Returns:
- the thumbprintAlgorithm value.
-
getUrl
Get the url property: The URL of the Certificate.- Returns:
- the url value.
-
getState
Get the state property: The state of the Certificate.- Returns:
- the state value.
-
getStateTransitionTime
Get the stateTransitionTime property: The time at which the Certificate entered its current state.- Returns:
- the stateTransitionTime value.
-
getPreviousState
Get the previousState property: The previous state of the Certificate. This property is not set if the Certificate is in its initial active state.- Returns:
- the previousState value.
-
getPreviousStateTransitionTime
Get the previousStateTransitionTime property: The time at which the Certificate entered its previous state. This property is not set if the Certificate is in its initial Active state.- Returns:
- the previousStateTransitionTime value.
-
getPublicData
Get the publicData property: The public part of the Certificate as a base-64 encoded .cer file.- Returns:
- the publicData value.
-
getDeleteCertificateError
Get the deleteCertificateError property: The error that occurred on the last attempt to delete this Certificate. This property is set only if the Certificate is in the DeleteFailed state.- Returns:
- the deleteCertificateError value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<GetCertificateResponse>
- Throws:
IOException
-
fromJson
public static GetCertificateResponse fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GetCertificateResponse from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of GetCertificateResponse if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the GetCertificateResponse.
-