Share via


CommandPropertiesInner Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.fluent.models.CommandPropertiesInner

Implements

public class CommandPropertiesInner
implements JsonSerializable<CommandPropertiesInner>

Base class for all types of DMS (classic) command properties. If command is not supported by current client, this object is returned.

Constructor Summary

Constructor Description
CommandPropertiesInner()

Creates an instance of CommandPropertiesInner class.

Method Summary

Modifier and Type Method and Description
CommandType commandType()

Get the commandType property: Command type.

List<ManagementError> errors()

Get the errors property: Array of errors.

static CommandPropertiesInner fromJson(JsonReader jsonReader)

Reads an instance of CommandPropertiesInner from the JsonReader.

CommandState state()

Get the state property: The state of the command.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

CommandPropertiesInner

public CommandPropertiesInner()

Creates an instance of CommandPropertiesInner class.

Method Details

commandType

public CommandType commandType()

Get the commandType property: Command type.

Returns:

the commandType value.

errors

public List<ManagementError> errors()

Get the errors property: Array of errors. This is ignored if submitted.

Returns:

the errors value.

fromJson

public static CommandPropertiesInner fromJson(JsonReader jsonReader)

Reads an instance of CommandPropertiesInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

state

public CommandState state()

Get the state property: The state of the command. This is ignored if submitted.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to