次の方法で共有


SqlFileShare Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.SqlFileShare

Implements

public final class SqlFileShare
implements JsonSerializable<SqlFileShare>

File share.

Constructor Summary

Constructor Description
SqlFileShare()

Creates an instance of SqlFileShare class.

Method Summary

Modifier and Type Method and Description
static SqlFileShare fromJson(JsonReader jsonReader)

Reads an instance of SqlFileShare from the JsonReader.

String password()

Get the password property: Password for username to access file share location.

String path()

Get the path property: Location as SMB share or local drive where backups are placed.

JsonWriter toJson(JsonWriter jsonWriter)
String username()

Get the username property: Username to access the file share location for backups.

void validate()

Validates the instance.

SqlFileShare withPassword(String password)

Set the password property: Password for username to access file share location.

SqlFileShare withPath(String path)

Set the path property: Location as SMB share or local drive where backups are placed.

SqlFileShare withUsername(String username)

Set the username property: Username to access the file share location for backups.

Methods inherited from java.lang.Object

Constructor Details

SqlFileShare

public SqlFileShare()

Creates an instance of SqlFileShare class.

Method Details

fromJson

public static SqlFileShare fromJson(JsonReader jsonReader)

Reads an instance of SqlFileShare from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlFileShare 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 SqlFileShare.

password

public String password()

Get the password property: Password for username to access file share location.

Returns:

the password value.

path

public String path()

Get the path property: Location as SMB share or local drive where backups are placed.

Returns:

the path value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: Username to access the file share location for backups.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withPassword

public SqlFileShare withPassword(String password)

Set the password property: Password for username to access file share location.

Parameters:

password - the password value to set.

Returns:

the SqlFileShare object itself.

withPath

public SqlFileShare withPath(String path)

Set the path property: Location as SMB share or local drive where backups are placed.

Parameters:

path - the path value to set.

Returns:

the SqlFileShare object itself.

withUsername

public SqlFileShare withUsername(String username)

Set the username property: Username to access the file share location for backups.

Parameters:

username - the username value to set.

Returns:

the SqlFileShare object itself.

Applies to