Class CloudServiceVaultAndSecretReference
java.lang.Object
com.azure.resourcemanager.compute.models.CloudServiceVaultAndSecretReference
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CloudServiceVaultAndSecretReference>
public final class CloudServiceVaultAndSecretReference
extends Object
implements com.azure.json.JsonSerializable<CloudServiceVaultAndSecretReference>
Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CloudServiceVaultAndSecretReference class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CloudServiceVaultAndSecretReference from the JsonReader.Get the secretUrl property: Secret URL which contains the protected settings of the extension.com.azure.core.management.SubResourceGet the sourceVault property: The ARM Resource ID of the Key Vault.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withSecretUrl(String secretUrl) Set the secretUrl property: Secret URL which contains the protected settings of the extension.withSourceVault(com.azure.core.management.SubResource sourceVault) Set the sourceVault property: The ARM Resource ID of the Key Vault.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
-
CloudServiceVaultAndSecretReference
public CloudServiceVaultAndSecretReference()Creates an instance of CloudServiceVaultAndSecretReference class.
-
-
Method Details
-
sourceVault
public com.azure.core.management.SubResource sourceVault()Get the sourceVault property: The ARM Resource ID of the Key Vault.- Returns:
- the sourceVault value.
-
withSourceVault
public CloudServiceVaultAndSecretReference withSourceVault(com.azure.core.management.SubResource sourceVault) Set the sourceVault property: The ARM Resource ID of the Key Vault.- Parameters:
sourceVault- the sourceVault value to set.- Returns:
- the CloudServiceVaultAndSecretReference object itself.
-
secretUrl
Get the secretUrl property: Secret URL which contains the protected settings of the extension.- Returns:
- the secretUrl value.
-
withSecretUrl
Set the secretUrl property: Secret URL which contains the protected settings of the extension.- Parameters:
secretUrl- the secretUrl value to set.- Returns:
- the CloudServiceVaultAndSecretReference 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<CloudServiceVaultAndSecretReference>- Throws:
IOException
-
fromJson
public static CloudServiceVaultAndSecretReference fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CloudServiceVaultAndSecretReference from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CloudServiceVaultAndSecretReference 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 CloudServiceVaultAndSecretReference.
-