FileShare Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. models. FileShare
- com.
Implements
public final class FileShare
implements JsonSerializable<FileShare>
File share information with Path, Username, and Password.
Constructor Summary
| Constructor | Description |
|---|---|
| FileShare() |
Creates an instance of File |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
File |
fromJson(JsonReader jsonReader)
Reads an instance of File |
| String |
password()
Get the password property: Password credential used to connect to the share location. |
| String |
path()
Get the path property: The folder path for this share. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
username()
Get the username property: User name credential to connect to the share location. |
| void |
validate()
Validates the instance. |
|
File |
withPassword(String password)
Set the password property: Password credential used to connect to the share location. |
|
File |
withPath(String path)
Set the path property: The folder path for this share. |
|
File |
withUsername(String username)
Set the username property: User name credential to connect to the share location. |
Methods inherited from java.lang.Object
Constructor Details
FileShare
public FileShare()
Creates an instance of FileShare class.
Method Details
fromJson
public static FileShare fromJson(JsonReader jsonReader)
Reads an instance of FileShare from the JsonReader.
Parameters:
Returns:
Throws:
password
public String password()
Get the password property: Password credential used to connect to the share location.
Returns:
path
public String path()
Get the path property: The folder path for this share.
Returns:
toJson
username
public String username()
Get the username property: User name credential to connect to the share location.
Returns:
validate
public void validate()
Validates the instance.
withPassword
public FileShare withPassword(String password)
Set the password property: Password credential used to connect to the share location.
Parameters:
Returns:
withPath
public FileShare withPath(String path)
Set the path property: The folder path for this share.
Parameters:
Returns:
withUsername
public FileShare withUsername(String username)
Set the username property: User name credential to connect to the share location.
Parameters:
Returns: