Share via


UpdateMoveCollectionRequest Class

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

Implements

public final class UpdateMoveCollectionRequest
implements JsonSerializable<UpdateMoveCollectionRequest>

Defines the request body for updating move collection.

Constructor Summary

Constructor Description
UpdateMoveCollectionRequest()

Creates an instance of UpdateMoveCollectionRequest class.

Method Summary

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

Reads an instance of UpdateMoveCollectionRequest from the JsonReader.

Identity identity()

Get the identity property: Defines the MSI properties of the Move Collection.

Map<String,String> tags()

Get the tags property: Gets or sets the Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

UpdateMoveCollectionRequest withIdentity(Identity identity)

Set the identity property: Defines the MSI properties of the Move Collection.

UpdateMoveCollectionRequest withTags(Map<String,String> tags)

Set the tags property: Gets or sets the Resource tags.

Methods inherited from java.lang.Object

Constructor Details

UpdateMoveCollectionRequest

public UpdateMoveCollectionRequest()

Creates an instance of UpdateMoveCollectionRequest class.

Method Details

fromJson

public static UpdateMoveCollectionRequest fromJson(JsonReader jsonReader)

Reads an instance of UpdateMoveCollectionRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public Identity identity()

Get the identity property: Defines the MSI properties of the Move Collection.

Returns:

the identity value.

tags

public Map<String,String> tags()

Get the tags property: Gets or sets the Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentity

public UpdateMoveCollectionRequest withIdentity(Identity identity)

Set the identity property: Defines the MSI properties of the Move Collection.

Parameters:

identity - the identity value to set.

Returns:

the UpdateMoveCollectionRequest object itself.

withTags

public UpdateMoveCollectionRequest withTags(Map<String,String> tags)

Set the tags property: Gets or sets the Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the UpdateMoveCollectionRequest object itself.

Applies to