مشاركة عبر


ManagedDatabaseStartMoveDefinition Class

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

Implements

public final class ManagedDatabaseStartMoveDefinition
implements JsonSerializable<ManagedDatabaseStartMoveDefinition>

Contains the information necessary to start a managed database move.

Constructor Summary

Constructor Description
ManagedDatabaseStartMoveDefinition()

Creates an instance of ManagedDatabaseStartMoveDefinition class.

Method Summary

Modifier and Type Method and Description
String destinationManagedDatabaseId()

Get the destinationManagedDatabaseId property: The destination managed database ID.

static ManagedDatabaseStartMoveDefinition fromJson(JsonReader jsonReader)

Reads an instance of ManagedDatabaseStartMoveDefinition from the JsonReader.

MoveOperationMode operationMode()

Get the operationMode property: The move operation mode.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedDatabaseStartMoveDefinition withDestinationManagedDatabaseId(String destinationManagedDatabaseId)

Set the destinationManagedDatabaseId property: The destination managed database ID.

ManagedDatabaseStartMoveDefinition withOperationMode(MoveOperationMode operationMode)

Set the operationMode property: The move operation mode.

Methods inherited from java.lang.Object

Constructor Details

ManagedDatabaseStartMoveDefinition

public ManagedDatabaseStartMoveDefinition()

Creates an instance of ManagedDatabaseStartMoveDefinition class.

Method Details

destinationManagedDatabaseId

public String destinationManagedDatabaseId()

Get the destinationManagedDatabaseId property: The destination managed database ID.

Returns:

the destinationManagedDatabaseId value.

fromJson

public static ManagedDatabaseStartMoveDefinition fromJson(JsonReader jsonReader)

Reads an instance of ManagedDatabaseStartMoveDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

operationMode

public MoveOperationMode operationMode()

Get the operationMode property: The move operation mode.

Returns:

the operationMode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDestinationManagedDatabaseId

public ManagedDatabaseStartMoveDefinition withDestinationManagedDatabaseId(String destinationManagedDatabaseId)

Set the destinationManagedDatabaseId property: The destination managed database ID.

Parameters:

destinationManagedDatabaseId - the destinationManagedDatabaseId value to set.

Returns:

the ManagedDatabaseStartMoveDefinition object itself.

withOperationMode

public ManagedDatabaseStartMoveDefinition withOperationMode(MoveOperationMode operationMode)

Set the operationMode property: The move operation mode.

Parameters:

operationMode - the operationMode value to set.

Returns:

the ManagedDatabaseStartMoveDefinition object itself.

Applies to