CreateMode Class

public final class CreateMode
extends ExpandableStringEnum<CreateMode>

Specifies the mode of sql pool creation. Default: regular sql pool creation. PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified. Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore. Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified.

Field Summary

Modifier and Type Field and Description
static final CreateMode DEFAULT

Static value Default for CreateMode.

static final CreateMode POINT_IN_TIME_RESTORE

Static value PointInTimeRestore for CreateMode.

static final CreateMode RECOVERY

Static value Recovery for CreateMode.

static final CreateMode RESTORE

Static value Restore for CreateMode.

Constructor Summary

Constructor Description
CreateMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of CreateMode value.

Method Summary

Modifier and Type Method and Description
static CreateMode fromString(String name)

Creates or finds a CreateMode from its string representation.

static Collection<CreateMode> values()

Gets known CreateMode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DEFAULT

public static final CreateMode DEFAULT

Static value Default for CreateMode.

POINT_IN_TIME_RESTORE

public static final CreateMode POINT_IN_TIME_RESTORE

Static value PointInTimeRestore for CreateMode.

RECOVERY

public static final CreateMode RECOVERY

Static value Recovery for CreateMode.

RESTORE

public static final CreateMode RESTORE

Static value Restore for CreateMode.

Constructor Details

CreateMode

@Deprecated
public CreateMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of CreateMode value.

Method Details

fromString

public static CreateMode fromString(String name)

Creates or finds a CreateMode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding CreateMode.

values

public static Collection<CreateMode> values()

Gets known CreateMode values.

Returns:

known CreateMode values.

Applies to