Class CloudServiceVaultSecretGroup

java.lang.Object
com.azure.resourcemanager.compute.models.CloudServiceVaultSecretGroup
All Implemented Interfaces:
com.azure.json.JsonSerializable<CloudServiceVaultSecretGroup>

public final class CloudServiceVaultSecretGroup extends Object implements com.azure.json.JsonSerializable<CloudServiceVaultSecretGroup>
Describes a set of certificates which are all in the same Key Vault.
  • Constructor Details

    • CloudServiceVaultSecretGroup

      public CloudServiceVaultSecretGroup()
      Creates an instance of CloudServiceVaultSecretGroup 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

      public CloudServiceVaultSecretGroup 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.
      Parameters:
      sourceVault - the sourceVault value to set.
      Returns:
      the CloudServiceVaultSecretGroup object itself.
    • vaultCertificates

      public List<CloudServiceVaultCertificate> vaultCertificates()
      Get the vaultCertificates property: The list of key vault references in SourceVault which contain certificates.
      Returns:
      the vaultCertificates value.
    • withVaultCertificates

      public CloudServiceVaultSecretGroup withVaultCertificates(List<CloudServiceVaultCertificate> vaultCertificates)
      Set the vaultCertificates property: The list of key vault references in SourceVault which contain certificates.
      Parameters:
      vaultCertificates - the vaultCertificates value to set.
      Returns:
      the CloudServiceVaultSecretGroup object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<CloudServiceVaultSecretGroup>
      Throws:
      IOException
    • fromJson

      public static CloudServiceVaultSecretGroup fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CloudServiceVaultSecretGroup from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CloudServiceVaultSecretGroup 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 CloudServiceVaultSecretGroup.