Share via


ProjectTaskProperties Class

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

Implements

public class ProjectTaskProperties
implements JsonSerializable<ProjectTaskProperties>

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

Constructor Summary

Constructor Description
ProjectTaskProperties()

Creates an instance of ProjectTaskProperties class.

Method Summary

Modifier and Type Method and Description
Map<String,String> clientData()

Get the clientData property: Key value pairs of client data to attach meta data information to task.

List<CommandPropertiesInner> commands()

Get the commands property: Array of command properties.

List<ManagementError> errors()

Get the errors property: Array of errors.

static ProjectTaskProperties fromJson(JsonReader jsonReader)

Reads an instance of ProjectTaskProperties from the JsonReader.

TaskState state()

Get the state property: The state of the task.

TaskType taskType()

Get the taskType property: Task type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProjectTaskProperties withClientData(Map<String,String> clientData)

Set the clientData property: Key value pairs of client data to attach meta data information to task.

Methods inherited from java.lang.Object

Constructor Details

ProjectTaskProperties

public ProjectTaskProperties()

Creates an instance of ProjectTaskProperties class.

Method Details

clientData

public Map<String,String> clientData()

Get the clientData property: Key value pairs of client data to attach meta data information to task.

Returns:

the clientData value.

commands

public List<CommandPropertiesInner> commands()

Get the commands property: Array of command properties.

Returns:

the commands 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 ProjectTaskProperties fromJson(JsonReader jsonReader)

Reads an instance of ProjectTaskProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

state

public TaskState state()

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

Returns:

the state value.

taskType

public TaskType taskType()

Get the taskType property: Task type.

Returns:

the taskType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withClientData

public ProjectTaskProperties withClientData(Map<String,String> clientData)

Set the clientData property: Key value pairs of client data to attach meta data information to task.

Parameters:

clientData - the clientData value to set.

Returns:

the ProjectTaskProperties object itself.

Applies to