Class CertificateCreateOrUpdateProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.CertificateCreateOrUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CertificateCreateOrUpdateProperties>
public final class CertificateCreateOrUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<CertificateCreateOrUpdateProperties>
The properties of the create certificate operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CertificateCreateOrUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the base64Value property: Gets or sets the base64 encoded value of the certificate.Get the description property: Gets or sets the description of the certificate.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CertificateCreateOrUpdateProperties from the JsonReader.Get the isExportable property: Gets or sets the is exportable flag of the certificate.Get the thumbprint property: Gets or sets the thumbprint of the certificate.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withBase64Value
(String base64Value) Set the base64Value property: Gets or sets the base64 encoded value of the certificate.withDescription
(String description) Set the description property: Gets or sets the description of the certificate.withIsExportable
(Boolean isExportable) Set the isExportable property: Gets or sets the is exportable flag of the certificate.withThumbprint
(String thumbprint) Set the thumbprint property: Gets or sets the thumbprint of the certificate.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
-
Constructor Details
-
CertificateCreateOrUpdateProperties
public CertificateCreateOrUpdateProperties()Creates an instance of CertificateCreateOrUpdateProperties class.
-
-
Method Details
-
base64Value
Get the base64Value property: Gets or sets the base64 encoded value of the certificate.- Returns:
- the base64Value value.
-
withBase64Value
Set the base64Value property: Gets or sets the base64 encoded value of the certificate.- Parameters:
base64Value
- the base64Value value to set.- Returns:
- the CertificateCreateOrUpdateProperties object itself.
-
description
Get the description property: Gets or sets the description of the certificate.- Returns:
- the description value.
-
withDescription
Set the description property: Gets or sets the description of the certificate.- Parameters:
description
- the description value to set.- Returns:
- the CertificateCreateOrUpdateProperties object itself.
-
thumbprint
Get the thumbprint property: Gets or sets the thumbprint of the certificate.- Returns:
- the thumbprint value.
-
withThumbprint
Set the thumbprint property: Gets or sets the thumbprint of the certificate.- Parameters:
thumbprint
- the thumbprint value to set.- Returns:
- the CertificateCreateOrUpdateProperties object itself.
-
isExportable
Get the isExportable property: Gets or sets the is exportable flag of the certificate.- Returns:
- the isExportable value.
-
withIsExportable
Set the isExportable property: Gets or sets the is exportable flag of the certificate.- Parameters:
isExportable
- the isExportable value to set.- Returns:
- the CertificateCreateOrUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CertificateCreateOrUpdateProperties>
- Throws:
IOException
-
fromJson
public static CertificateCreateOrUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CertificateCreateOrUpdateProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CertificateCreateOrUpdateProperties 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 CertificateCreateOrUpdateProperties.
-