Class VaultSecretGroup
java.lang.Object
com.azure.resourcemanager.compute.models.VaultSecretGroup
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VaultSecretGroup>
public final class VaultSecretGroup
extends Object
implements com.azure.json.JsonSerializable<VaultSecretGroup>
Describes a set of certificates which are all in the same Key Vault.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VaultSecretGroupfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VaultSecretGroup from the JsonReader.com.azure.core.management.SubResourceGet the sourceVault property: The relative URL of the Key Vault containing all of the certificates in VaultCertificates.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the vaultCertificates property: The list of key vault references in SourceVault which contain certificates.withSourceVault(com.azure.core.management.SubResource sourceVault) Set the sourceVault property: The relative URL of the Key Vault containing all of the certificates in VaultCertificates.withVaultCertificates(List<VaultCertificate> vaultCertificates) Set the vaultCertificates property: The list of key vault references in SourceVault which contain certificates.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
-
VaultSecretGroup
public VaultSecretGroup()Creates an instance of VaultSecretGroup class.
-
-
Method Details
-
sourceVault
public com.azure.core.management.SubResource sourceVault()Get the sourceVault property: The relative URL of the Key Vault containing all of the certificates in VaultCertificates.- Returns:
- the sourceVault value.
-
withSourceVault
Set the sourceVault property: The relative URL of the Key Vault containing all of the certificates in VaultCertificates.- Parameters:
sourceVault- the sourceVault value to set.- Returns:
- the VaultSecretGroup object itself.
-
vaultCertificates
Get the vaultCertificates property: The list of key vault references in SourceVault which contain certificates.- Returns:
- the vaultCertificates value.
-
withVaultCertificates
Set the vaultCertificates property: The list of key vault references in SourceVault which contain certificates.- Parameters:
vaultCertificates- the vaultCertificates value to set.- Returns:
- the VaultSecretGroup 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<VaultSecretGroup>- Throws:
IOException
-
fromJson
Reads an instance of VaultSecretGroup from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VaultSecretGroup 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 VaultSecretGroup.
-