Share via


DiscardRequest Class

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

Implements

public final class DiscardRequest
implements JsonSerializable<DiscardRequest>

Defines the request body for discard operation.

Constructor Summary

Constructor Description
DiscardRequest()

Creates an instance of DiscardRequest class.

Method Summary

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

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

DiscardRequest withMoveResourceInputType(MoveResourceInputType moveResourceInputType)

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

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

DiscardRequest 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

DiscardRequest

public DiscardRequest()

Creates an instance of DiscardRequest class.

Method Details

fromJson

public static DiscardRequest fromJson(JsonReader jsonReader)

Reads an instance of DiscardRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DiscardRequest 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 DiscardRequest withMoveResourceInputType(MoveResourceInputType moveResourceInputType)

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

Parameters:

moveResourceInputType - the moveResourceInputType value to set.

Returns:

the DiscardRequest object itself.

withMoveResources

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

withValidateOnly

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

Applies to