MongoDbCancelCommand Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. fluent. models. CommandPropertiesInner - com.
azure. resourcemanager. datamigration. models. MongoDbCancelCommand
- com.
- com.
public final class MongoDbCancelCommand
extends CommandPropertiesInner
Properties for the command that cancels a migration in whole or in part.
Constructor Summary
| Constructor | Description |
|---|---|
| MongoDbCancelCommand() |
Creates an instance of Mongo |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Command |
commandType()
Get the command |
|
List<Management |
errors()
Get the errors property: Array of errors. |
|
static
Mongo |
fromJson(JsonReader jsonReader)
Reads an instance of Mongo |
|
Mongo |
input()
Get the input property: Command input. |
|
Command |
state()
Get the state property: The state of the command. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Mongo |
withInput(MongoDbCommandInput input)
Set the input property: Command input. |
Methods inherited from CommandPropertiesInner
Methods inherited from java.lang.Object
Constructor Details
MongoDbCancelCommand
public MongoDbCancelCommand()
Creates an instance of MongoDbCancelCommand class.
Method Details
commandType
public CommandType commandType()
Get the commandType property: Command type.
Overrides:
MongoDbCancelCommand.commandType()Returns:
errors
public List<ManagementError> errors()
Get the errors property: Array of errors. This is ignored if submitted.
Overrides:
MongoDbCancelCommand.errors()Returns:
fromJson
public static MongoDbCancelCommand fromJson(JsonReader jsonReader)
Reads an instance of MongoDbCancelCommand from the JsonReader.
Parameters:
Returns:
Throws:
input
public MongoDbCommandInput input()
Get the input property: Command input.
Returns:
state
public CommandState state()
Get the state property: The state of the command. This is ignored if submitted.
Overrides:
MongoDbCancelCommand.state()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MongoDbCancelCommand.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
MongoDbCancelCommand.validate()withInput
public MongoDbCancelCommand withInput(MongoDbCommandInput input)
Set the input property: Command input.
Parameters:
Returns: