مشاركة عبر


ResourceMoveDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.ResourceMoveDefinition

Implements

public final class ResourceMoveDefinition
implements JsonSerializable<ResourceMoveDefinition>

Contains the information necessary to perform a resource move (rename).

Constructor Summary

Constructor Description
ResourceMoveDefinition()

Creates an instance of ResourceMoveDefinition class.

Method Summary

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

Reads an instance of ResourceMoveDefinition from the JsonReader.

String id()

Get the id property: The target ID for the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourceMoveDefinition withId(String id)

Set the id property: The target ID for the resource.

Methods inherited from java.lang.Object

Constructor Details

ResourceMoveDefinition

public ResourceMoveDefinition()

Creates an instance of ResourceMoveDefinition class.

Method Details

fromJson

public static ResourceMoveDefinition fromJson(JsonReader jsonReader)

Reads an instance of ResourceMoveDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The target ID for the resource.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public ResourceMoveDefinition withId(String id)

Set the id property: The target ID for the resource.

Parameters:

id - the id value to set.

Returns:

the ResourceMoveDefinition object itself.

Applies to