Share via


PrepareRequest Class

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

Implements

public final class PrepareRequest
implements JsonSerializable<PrepareRequest>

Defines the request body for initiate prepare operation.

Constructor Summary

Constructor Description
PrepareRequest()

Creates an instance of PrepareRequest class.

Method Summary

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

Reads an instance of PrepareRequest from the JsonReader.

MoveResourceInputType moveResourceInputType()

Get the moveResourceInputType property: Defines the move resource input type.

List<String> moveResources()

Get the moveResources property: Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Boolean validateOnly()

Get the validateOnly property: Gets or sets a value indicating whether the operation needs to only run pre-requisite.

PrepareRequest withMoveResourceInputType(MoveResourceInputType moveResourceInputType)

Set the moveResourceInputType property: Defines the move resource input type.

PrepareRequest withMoveResources(List<String> moveResources)

Set the moveResources property: Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property.

PrepareRequest withValidateOnly(Boolean validateOnly)

Set the validateOnly property: Gets or sets a value indicating whether the operation needs to only run pre-requisite.

Methods inherited from java.lang.Object

Constructor Details

PrepareRequest

public PrepareRequest()

Creates an instance of PrepareRequest class.

Method Details

fromJson

public static PrepareRequest fromJson(JsonReader jsonReader)

Reads an instance of PrepareRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PrepareRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

moveResourceInputType

public MoveResourceInputType moveResourceInputType()

Get the moveResourceInputType property: Defines the move resource input type.

Returns:

the moveResourceInputType value.

moveResources

public List<String> moveResources()

Get the moveResources property: Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property.

Returns:

the moveResources value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

validateOnly

public Boolean validateOnly()

Get the validateOnly property: Gets or sets a value indicating whether the operation needs to only run pre-requisite.

Returns:

the validateOnly value.

withMoveResourceInputType

public PrepareRequest withMoveResourceInputType(MoveResourceInputType moveResourceInputType)

Set the moveResourceInputType property: Defines the move resource input type.

Parameters:

moveResourceInputType - the moveResourceInputType value to set.

Returns:

the PrepareRequest object itself.

withMoveResources

public PrepareRequest withMoveResources(List<String> moveResources)

Set the moveResources property: Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property.

Parameters:

moveResources - the moveResources value to set.

Returns:

the PrepareRequest object itself.

withValidateOnly

public PrepareRequest withValidateOnly(Boolean validateOnly)

Set the validateOnly property: Gets or sets a value indicating whether the operation needs to only run pre-requisite.

Parameters:

validateOnly - the validateOnly value to set.

Returns:

the PrepareRequest object itself.

Applies to