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

public final class Encryption extends Object implements com.azure.json.JsonSerializable<Encryption>
Properties to configure Encryption.
  • Constructor Details

    • Encryption

      public Encryption()
      Creates an instance of Encryption class.
  • Method Details

    • keyVaultProperties

      public List<KeyVaultProperties> keyVaultProperties()
      Get the keyVaultProperties property: Properties of KeyVault.
      Returns:
      the keyVaultProperties value.
    • withKeyVaultProperties

      public Encryption withKeyVaultProperties(List<KeyVaultProperties> keyVaultProperties)
      Set the keyVaultProperties property: Properties of KeyVault.
      Parameters:
      keyVaultProperties - the keyVaultProperties value to set.
      Returns:
      the Encryption object itself.
    • keySource

      public KeySource keySource()
      Get the keySource property: Enumerates the possible value of keySource for Encryption.
      Returns:
      the keySource value.
    • withKeySource

      public Encryption withKeySource(KeySource keySource)
      Set the keySource property: Enumerates the possible value of keySource for Encryption.
      Parameters:
      keySource - the keySource value to set.
      Returns:
      the Encryption object itself.
    • requireInfrastructureEncryption

      public Boolean requireInfrastructureEncryption()
      Get the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
      Returns:
      the requireInfrastructureEncryption value.
    • withRequireInfrastructureEncryption

      public Encryption withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption)
      Set the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
      Parameters:
      requireInfrastructureEncryption - the requireInfrastructureEncryption value to set.
      Returns:
      the Encryption 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<Encryption>
      Throws:
      IOException
    • fromJson

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