Share via


MoveResourceError Class

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

Implements

public class MoveResourceError
implements JsonSerializable<MoveResourceError>

An error response from the azure resource mover service.

Constructor Summary

Constructor Description
MoveResourceError()

Creates an instance of MoveResourceError class.

Method Summary

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

Reads an instance of MoveResourceError from the JsonReader.

MoveResourceErrorBody properties()

Get the properties property: The move resource error body.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MoveResourceError withProperties(MoveResourceErrorBody properties)

Set the properties property: The move resource error body.

Methods inherited from java.lang.Object

Constructor Details

MoveResourceError

public MoveResourceError()

Creates an instance of MoveResourceError class.

Method Details

fromJson

public static MoveResourceError fromJson(JsonReader jsonReader)

Reads an instance of MoveResourceError from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public MoveResourceErrorBody properties()

Get the properties property: The move resource error body.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withProperties

public MoveResourceError withProperties(MoveResourceErrorBody properties)

Set the properties property: The move resource error body.

Parameters:

properties - the properties value to set.

Returns:

the MoveResourceError object itself.

Applies to