Class CertificateCreateOrUpdateProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.CertificateCreateOrUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CertificateCreateOrUpdateProperties>
public final class CertificateCreateOrUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<CertificateCreateOrUpdateProperties>
Parameters supplied to the CreateOrUpdate certificate operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CertificateCreateOrUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Get the data property: Base 64 encoded certificate using the application/x-pkcs12 representation.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CertificateCreateOrUpdateProperties from the JsonReader.keyVault()Get the keyVault property: KeyVault location details of the certificate.password()Get the password property: Password for the Certificate.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the data property: Base 64 encoded certificate using the application/x-pkcs12 representation.withKeyVault(KeyVaultContractCreateProperties keyVault) Set the keyVault property: KeyVault location details of the certificate.withPassword(String password) Set the password property: Password for the Certificate.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CertificateCreateOrUpdateProperties
public CertificateCreateOrUpdateProperties()Creates an instance of CertificateCreateOrUpdateProperties class.
-
-
Method Details
-
data
Get the data property: Base 64 encoded certificate using the application/x-pkcs12 representation.- Returns:
- the data value.
-
withData
Set the data property: Base 64 encoded certificate using the application/x-pkcs12 representation.- Parameters:
data- the data value to set.- Returns:
- the CertificateCreateOrUpdateProperties object itself.
-
password
Get the password property: Password for the Certificate.- Returns:
- the password value.
-
withPassword
Set the password property: Password for the Certificate.- Parameters:
password- the password value to set.- Returns:
- the CertificateCreateOrUpdateProperties object itself.
-
keyVault
Get the keyVault property: KeyVault location details of the certificate.- Returns:
- the keyVault value.
-
withKeyVault
Set the keyVault property: KeyVault location details of the certificate.- Parameters:
keyVault- the keyVault 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:
toJsonin 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:
IOException- If an error occurs while reading the CertificateCreateOrUpdateProperties.
-