Class AzureKeyVaultSmbCredentials

java.lang.Object
com.azure.resourcemanager.storagemover.models.Credentials
com.azure.resourcemanager.storagemover.models.AzureKeyVaultSmbCredentials
All Implemented Interfaces:
com.azure.json.JsonSerializable<Credentials>

public final class AzureKeyVaultSmbCredentials extends Credentials
The Azure Key Vault secret URIs which store the credentials.
  • Constructor Details

    • AzureKeyVaultSmbCredentials

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

    • type

      public CredentialType type()
      Get the type property: The Credentials type.
      Overrides:
      type in class Credentials
      Returns:
      the type value.
    • usernameUri

      public String usernameUri()
      Get the usernameUri property: The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value.
      Returns:
      the usernameUri value.
    • withUsernameUri

      public AzureKeyVaultSmbCredentials withUsernameUri(String usernameUri)
      Set the usernameUri property: The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value.
      Parameters:
      usernameUri - the usernameUri value to set.
      Returns:
      the AzureKeyVaultSmbCredentials object itself.
    • passwordUri

      public String passwordUri()
      Get the passwordUri property: The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value.
      Returns:
      the passwordUri value.
    • withPasswordUri

      public AzureKeyVaultSmbCredentials withPasswordUri(String passwordUri)
      Set the passwordUri property: The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value.
      Parameters:
      passwordUri - the passwordUri value to set.
      Returns:
      the AzureKeyVaultSmbCredentials object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Credentials
      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<Credentials>
      Overrides:
      toJson in class Credentials
      Throws:
      IOException
    • fromJson

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