Class KeyVaultProperties

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

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

    • KeyVaultProperties

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

    • keyName

      public String keyName()
      Get the keyName property: Name of the Key from KeyVault.
      Returns:
      the keyName value.
    • withKeyName

      public KeyVaultProperties withKeyName(String keyName)
      Set the keyName property: Name of the Key from KeyVault.
      Parameters:
      keyName - the keyName value to set.
      Returns:
      the KeyVaultProperties object itself.
    • keyVaultUri

      public String keyVaultUri()
      Get the keyVaultUri property: Uri of KeyVault.
      Returns:
      the keyVaultUri value.
    • withKeyVaultUri

      public KeyVaultProperties withKeyVaultUri(String keyVaultUri)
      Set the keyVaultUri property: Uri of KeyVault.
      Parameters:
      keyVaultUri - the keyVaultUri value to set.
      Returns:
      the KeyVaultProperties object itself.
    • keyVersion

      public String keyVersion()
      Get the keyVersion property: Version of KeyVault.
      Returns:
      the keyVersion value.
    • withKeyVersion

      public KeyVaultProperties withKeyVersion(String keyVersion)
      Set the keyVersion property: Version of KeyVault.
      Parameters:
      keyVersion - the keyVersion value to set.
      Returns:
      the KeyVaultProperties object itself.
    • identity

      public UserAssignedIdentityProperties identity()
      Get the identity property: The identity property.
      Returns:
      the identity value.
    • withIdentity

      public KeyVaultProperties withIdentity(UserAssignedIdentityProperties identity)
      Set the identity property: The identity property.
      Parameters:
      identity - the identity value to set.
      Returns:
      the KeyVaultProperties 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<KeyVaultProperties>
      Throws:
      IOException
    • fromJson

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