Class FileShare
java.lang.Object
com.azure.resourcemanager.datamigration.models.FileShare
File share information with Path, Username, and Password.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpassword()
Get the password property: Password credential used to connect to the share location.path()
Get the path property: The folder path for this share.username()
Get the username property: User name credential to connect to the share location.void
validate()
Validates the instance.withPassword
(String password) Set the password property: Password credential used to connect to the share location.Set the path property: The folder path for this share.withUsername
(String username) Set the username property: User name credential to connect to the share location.
-
Constructor Details
-
FileShare
public FileShare()Creates an instance of FileShare class.
-
-
Method Details
-
username
Get the username property: User name credential to connect to the share location.- Returns:
- the username value.
-
withUsername
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
Get the password property: Password credential used to connect to the share location.- Returns:
- the password value.
-
withPassword
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
Get the path property: The folder path for this share.- Returns:
- the path value.
-
withPath
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.
-