Class CertificateCreateOrUpdateParameters
java.lang.Object
com.azure.resourcemanager.automation.models.CertificateCreateOrUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CertificateCreateOrUpdateParameters>
public final class CertificateCreateOrUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<CertificateCreateOrUpdateParameters>
The parameters supplied to the create or update or replace certificate operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CertificateCreateOrUpdateParameters 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 CertificateCreateOrUpdateParameters from the JsonReader.Get the isExportable property: Gets or sets the is exportable flag of the certificate.name()
Get the name property: Gets or sets the name 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.Set the name property: Gets or sets the name 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
-
CertificateCreateOrUpdateParameters
public CertificateCreateOrUpdateParameters()Creates an instance of CertificateCreateOrUpdateParameters class.
-
-
Method Details
-
name
Get the name property: Gets or sets the name of the certificate.- Returns:
- the name value.
-
withName
Set the name property: Gets or sets the name of the certificate.- Parameters:
name
- the name value to set.- Returns:
- the CertificateCreateOrUpdateParameters object itself.
-
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 CertificateCreateOrUpdateParameters 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 CertificateCreateOrUpdateParameters 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 CertificateCreateOrUpdateParameters 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 CertificateCreateOrUpdateParameters 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<CertificateCreateOrUpdateParameters>
- Throws:
IOException
-
fromJson
public static CertificateCreateOrUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CertificateCreateOrUpdateParameters from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CertificateCreateOrUpdateParameters 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 CertificateCreateOrUpdateParameters.
-