Class ValidateSecretInput
java.lang.Object
com.azure.resourcemanager.cdn.models.ValidateSecretInput
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ValidateSecretInput>
public final class ValidateSecretInput
extends Object
implements com.azure.json.JsonSerializable<ValidateSecretInput>
Input of the secret to be validated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidateSecretInputfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ValidateSecretInput from the JsonReader.Get the secretSource property: Resource reference to the Azure Key Vault secret.Get the secretType property: The secret type.Get the secretVersion property: Secret version, if customer is using a specific version.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withSecretSource(ResourceReference secretSource) Set the secretSource property: Resource reference to the Azure Key Vault secret.withSecretType(SecretType secretType) Set the secretType property: The secret type.withSecretVersion(String secretVersion) Set the secretVersion property: Secret version, if customer is using a specific version.Methods inherited from class 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
-
ValidateSecretInput
public ValidateSecretInput()Creates an instance of ValidateSecretInput class.
-
-
Method Details
-
secretType
Get the secretType property: The secret type.- Returns:
- the secretType value.
-
withSecretType
Set the secretType property: The secret type.- Parameters:
secretType- the secretType value to set.- Returns:
- the ValidateSecretInput object itself.
-
secretSource
Get the secretSource property: Resource reference to the Azure Key Vault secret. Expected to be in format of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}.- Returns:
- the secretSource value.
-
withSecretSource
Set the secretSource property: Resource reference to the Azure Key Vault secret. Expected to be in format of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}.- Parameters:
secretSource- the secretSource value to set.- Returns:
- the ValidateSecretInput object itself.
-
secretVersion
Get the secretVersion property: Secret version, if customer is using a specific version.- Returns:
- the secretVersion value.
-
withSecretVersion
Set the secretVersion property: Secret version, if customer is using a specific version.- Parameters:
secretVersion- the secretVersion value to set.- Returns:
- the ValidateSecretInput 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<ValidateSecretInput>- Throws:
IOException
-
fromJson
Reads an instance of ValidateSecretInput from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ValidateSecretInput 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 ValidateSecretInput.
-