MoveResourceStatus Class

  • java.lang.Object
    • com.azure.resourcemanager.resourcemover.models.MoveResourceStatus

Implements

public class MoveResourceStatus
implements JsonSerializable<MoveResourceStatus>

Defines the move resource status.

Constructor Summary

Constructor Description
MoveResourceStatus()

Creates an instance of MoveResourceStatus class.

Method Summary

Modifier and Type Method and Description
MoveResourceError errors()

Get the errors property: An error response from the azure resource mover service.

static MoveResourceStatus fromJson(JsonReader jsonReader)

Reads an instance of MoveResourceStatus from the JsonReader.

JobStatus jobStatus()

Get the jobStatus property: Defines the job status.

MoveState moveState()

Get the moveState property: Defines the MoveResource states.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MoveResourceStatus withErrors(MoveResourceError errors)

Set the errors property: An error response from the azure resource mover service.

MoveResourceStatus withJobStatus(JobStatus jobStatus)

Set the jobStatus property: Defines the job status.

Methods inherited from java.lang.Object

Constructor Details

MoveResourceStatus

public MoveResourceStatus()

Creates an instance of MoveResourceStatus class.

Method Details

errors

public MoveResourceError errors()

Get the errors property: An error response from the azure resource mover service.

Returns:

the errors value.

fromJson

public static MoveResourceStatus fromJson(JsonReader jsonReader)

Reads an instance of MoveResourceStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

jobStatus

public JobStatus jobStatus()

Get the jobStatus property: Defines the job status.

Returns:

the jobStatus value.

moveState

public MoveState moveState()

Get the moveState property: Defines the MoveResource states.

Returns:

the moveState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withErrors

public MoveResourceStatus withErrors(MoveResourceError errors)

Set the errors property: An error response from the azure resource mover service.

Parameters:

errors - the errors value to set.

Returns:

the MoveResourceStatus object itself.

withJobStatus

public MoveResourceStatus withJobStatus(JobStatus jobStatus)

Set the jobStatus property: Defines the job status.

Parameters:

jobStatus - the jobStatus value to set.

Returns:

the MoveResourceStatus object itself.

Applies to