Share via


DiscardRequest Class

  • java.lang.Object
    • com.microsoft.azure.management.resourcemover.v2021_01_01.DiscardRequest

public class DiscardRequest

Defines the request body for discard operation.

Constructor Summary

Constructor Description
DiscardRequest()

Method Summary

Modifier and Type Method and Description
MoveResourceInputType moveResourceInputType()

Get possible values include: 'MoveResourceId', 'MoveResourceSourceId'.

java.util.List<java.lang.String> moveResources()

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

java.lang.Boolean validateOnly()

Get gets or sets a value indicating whether the operation needs to only run pre-requisite.

DiscardRequest withMoveResourceInputType(MoveResourceInputType moveResourceInputType)

Set possible values include: 'MoveResourceId', 'MoveResourceSourceId'.

DiscardRequest withMoveResources(List<String> moveResources)

Set 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 gets or sets a value indicating whether the operation needs to only run pre-requisite.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

DiscardRequest

public DiscardRequest()

Method Details

moveResourceInputType

public MoveResourceInputType moveResourceInputType()

Get possible values include: 'MoveResourceId', 'MoveResourceSourceId'.

Returns:

the moveResourceInputType value

moveResources

public List<String> moveResources()

Get 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

validateOnly

public Boolean validateOnly()

Get 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 possible values include: 'MoveResourceId', 'MoveResourceSourceId'.

Parameters:

moveResourceInputType - the moveResourceInputType value to set

Returns:

the DiscardRequest object itself.

withMoveResources

public DiscardRequest withMoveResources(List<String> moveResources)

Set 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 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