java.lang.Object
com.azure.resourcemanager.datamigration.models.FileShare

public final class FileShare extends Object
File share information with Path, Username, and Password.
  • Constructor Details

    • FileShare

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

    • username

      public String username()
      Get the username property: User name credential to connect to the share location.
      Returns:
      the username value.
    • withUsername

      public FileShare withUsername(String username)
      Set the username property: User name credential to connect to the share location.
      Parameters:
      username - the username value to set.
      Returns:
      the FileShare object itself.
    • password

      public String password()
      Get the password property: Password credential used to connect to the share location.
      Returns:
      the password value.
    • withPassword

      public FileShare withPassword(String password)
      Set the password property: Password credential used to connect to the share location.
      Parameters:
      password - the password value to set.
      Returns:
      the FileShare object itself.
    • path

      public String path()
      Get the path property: The folder path for this share.
      Returns:
      the path value.
    • withPath

      public FileShare withPath(String path)
      Set the path property: The folder path for this share.
      Parameters:
      path - the path value to set.
      Returns:
      the FileShare object itself.
    • validate

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