MongoMigrationCollection Class

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

Implements

public final class MongoMigrationCollection
implements JsonSerializable<MongoMigrationCollection>

Mongo source and target database and collection details.

Constructor Summary

Constructor Description
MongoMigrationCollection()

Creates an instance of MongoMigrationCollection class.

Method Summary

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

Reads an instance of MongoMigrationCollection from the JsonReader.

MongoMigrationProgressDetails migrationProgressDetails()

Get the migrationProgressDetails property: Detailed migration status.

String sourceCollection()

Get the sourceCollection property: Source collection name.

String sourceDatabase()

Get the sourceDatabase property: Source database name.

String targetCollection()

Get the targetCollection property: Target collection name.

String targetDatabase()

Get the targetDatabase property: Target database name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MongoMigrationCollection withSourceCollection(String sourceCollection)

Set the sourceCollection property: Source collection name.

MongoMigrationCollection withSourceDatabase(String sourceDatabase)

Set the sourceDatabase property: Source database name.

MongoMigrationCollection withTargetCollection(String targetCollection)

Set the targetCollection property: Target collection name.

MongoMigrationCollection withTargetDatabase(String targetDatabase)

Set the targetDatabase property: Target database name.

Methods inherited from java.lang.Object

Constructor Details

MongoMigrationCollection

public MongoMigrationCollection()

Creates an instance of MongoMigrationCollection class.

Method Details

fromJson

public static MongoMigrationCollection fromJson(JsonReader jsonReader)

Reads an instance of MongoMigrationCollection from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

migrationProgressDetails

public MongoMigrationProgressDetails migrationProgressDetails()

Get the migrationProgressDetails property: Detailed migration status. Not included by default.

Returns:

the migrationProgressDetails value.

sourceCollection

public String sourceCollection()

Get the sourceCollection property: Source collection name.

Returns:

the sourceCollection value.

sourceDatabase

public String sourceDatabase()

Get the sourceDatabase property: Source database name.

Returns:

the sourceDatabase value.

targetCollection

public String targetCollection()

Get the targetCollection property: Target collection name.

Returns:

the targetCollection value.

targetDatabase

public String targetDatabase()

Get the targetDatabase property: Target database name.

Returns:

the targetDatabase value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSourceCollection

public MongoMigrationCollection withSourceCollection(String sourceCollection)

Set the sourceCollection property: Source collection name.

Parameters:

sourceCollection - the sourceCollection value to set.

Returns:

the MongoMigrationCollection object itself.

withSourceDatabase

public MongoMigrationCollection withSourceDatabase(String sourceDatabase)

Set the sourceDatabase property: Source database name.

Parameters:

sourceDatabase - the sourceDatabase value to set.

Returns:

the MongoMigrationCollection object itself.

withTargetCollection

public MongoMigrationCollection withTargetCollection(String targetCollection)

Set the targetCollection property: Target collection name.

Parameters:

targetCollection - the targetCollection value to set.

Returns:

the MongoMigrationCollection object itself.

withTargetDatabase

public MongoMigrationCollection withTargetDatabase(String targetDatabase)

Set the targetDatabase property: Target database name.

Parameters:

targetDatabase - the targetDatabase value to set.

Returns:

the MongoMigrationCollection object itself.

Applies to