次の方法で共有


DatabaseInfo Class

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

Implements

public final class DatabaseInfo
implements JsonSerializable<DatabaseInfo>

Project Database Details.

Constructor Summary

Constructor Description
DatabaseInfo()

Creates an instance of DatabaseInfo class.

Method Summary

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

Reads an instance of DatabaseInfo from the JsonReader.

String sourceDatabaseName()

Get the sourceDatabaseName property: Name of the database.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DatabaseInfo withSourceDatabaseName(String sourceDatabaseName)

Set the sourceDatabaseName property: Name of the database.

Methods inherited from java.lang.Object

Constructor Details

DatabaseInfo

public DatabaseInfo()

Creates an instance of DatabaseInfo class.

Method Details

fromJson

public static DatabaseInfo fromJson(JsonReader jsonReader)

Reads an instance of DatabaseInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DatabaseInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

sourceDatabaseName

public String sourceDatabaseName()

Get the sourceDatabaseName property: Name of the database.

Returns:

the sourceDatabaseName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSourceDatabaseName

public DatabaseInfo withSourceDatabaseName(String sourceDatabaseName)

Set the sourceDatabaseName property: Name of the database.

Parameters:

sourceDatabaseName - the sourceDatabaseName value to set.

Returns:

the DatabaseInfo object itself.

Applies to