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
    Constructor
    Description
    Creates an instance of VaultSecretGroup class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of VaultSecretGroup from the JsonReader.
    com.azure.core.management.SubResource
    Get the sourceVault property: The relative URL of the Key Vault containing all of the certificates in VaultCertificates.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    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.
    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, wait

    Methods 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

      public VaultSecretGroup 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 VaultSecretGroup object itself.
    • vaultCertificates

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

      public VaultSecretGroup withVaultCertificates(List<VaultCertificate> 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 VaultSecretGroup 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<VaultSecretGroup>
      Throws:
      IOException
    • fromJson

      public static VaultSecretGroup fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.