Share via


CommitRequest Class

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

Implements

public final class CommitRequest
implements JsonSerializable<CommitRequest>

Defines the request body for commit operation.

Constructor Summary

Constructor Description
CommitRequest()

Creates an instance of CommitRequest class.

Method Summary

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

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

CommitRequest withMoveResourceInputType(MoveResourceInputType moveResourceInputType)

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

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

CommitRequest 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

CommitRequest

public CommitRequest()

Creates an instance of CommitRequest class.

Method Details

fromJson

public static CommitRequest fromJson(JsonReader jsonReader)

Reads an instance of CommitRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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

Parameters:

moveResourceInputType - the moveResourceInputType value to set.

Returns:

the CommitRequest object itself.

withMoveResources

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

withValidateOnly

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

Applies to