Share via


MongoDbCommandInput Class

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

Implements

public class MongoDbCommandInput
implements JsonSerializable<MongoDbCommandInput>

Describes the input to the 'cancel' and 'restart' MongoDB migration commands.

Constructor Summary

Constructor Description
MongoDbCommandInput()

Creates an instance of MongoDbCommandInput class.

Method Summary

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

Reads an instance of MongoDbCommandInput from the JsonReader.

String objectName()

Get the objectName property: The qualified name of a database or collection to act upon, or null to act upon the entire migration.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MongoDbCommandInput withObjectName(String objectName)

Set the objectName property: The qualified name of a database or collection to act upon, or null to act upon the entire migration.

Methods inherited from java.lang.Object

Constructor Details

MongoDbCommandInput

public MongoDbCommandInput()

Creates an instance of MongoDbCommandInput class.

Method Details

fromJson

public static MongoDbCommandInput fromJson(JsonReader jsonReader)

Reads an instance of MongoDbCommandInput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

objectName

public String objectName()

Get the objectName property: The qualified name of a database or collection to act upon, or null to act upon the entire migration.

Returns:

the objectName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withObjectName

public MongoDbCommandInput withObjectName(String objectName)

Set the objectName property: The qualified name of a database or collection to act upon, or null to act upon the entire migration.

Parameters:

objectName - the objectName value to set.

Returns:

the MongoDbCommandInput object itself.

Applies to