Share via


BulkRemoveRequest Class

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

Implements

public final class BulkRemoveRequest
implements JsonSerializable<BulkRemoveRequest>

Defines the request body for bulk remove of move resources operation.

Constructor Summary

Constructor Description
BulkRemoveRequest()

Creates an instance of BulkRemoveRequest class.

Method Summary

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

Reads an instance of BulkRemoveRequest 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.

BulkRemoveRequest withMoveResourceInputType(MoveResourceInputType moveResourceInputType)

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

BulkRemoveRequest 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.

BulkRemoveRequest 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

BulkRemoveRequest

public BulkRemoveRequest()

Creates an instance of BulkRemoveRequest class.

Method Details

fromJson

public static BulkRemoveRequest fromJson(JsonReader jsonReader)

Reads an instance of BulkRemoveRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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 BulkRemoveRequest withMoveResourceInputType(MoveResourceInputType moveResourceInputType)

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

Parameters:

moveResourceInputType - the moveResourceInputType value to set.

Returns:

the BulkRemoveRequest object itself.

withMoveResources

public BulkRemoveRequest 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 BulkRemoveRequest object itself.

withValidateOnly

public BulkRemoveRequest 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 BulkRemoveRequest object itself.

Applies to