CreateMode Class

  • java.lang.Object
    • com.microsoft.rest.ExpandableStringEnum<CreateMode>
      • com.microsoft.azure.management.sql.CreateMode

public class CreateMode

Defines values for CreateMode.

Field Summary

Modifier and Type Field and Description
final CreateMode COPY

Static value Copy for CreateMode.

final CreateMode DEFAULT

Static value Default for CreateMode.

final CreateMode NON_READABLE_SECONDARY

Static value NonReadableSecondary for CreateMode.

final CreateMode ONLINE_SECONDARY

Static value OnlineSecondary for CreateMode.

final CreateMode POINT_IN_TIME_RESTORE

Static value PointInTimeRestore for CreateMode.

final CreateMode RECOVERY

Static value Recovery for CreateMode.

final CreateMode RESTORE

Static value Restore for CreateMode.

final CreateMode RESTORE_LONG_TERM_RETENTION_BACKUP

Static value RestoreLongTermRetentionBackup for CreateMode.

Constructor Summary

Constructor Description
CreateMode(String value)

Creates a custom value for CreateMode.

Method Summary

Modifier and Type Method and Description
boolean equals(Object obj)
CreateMode fromString(String name)

Creates or finds a CreateMode from its string representation.

int hashCode()
String toString()
Collection<CreateMode> values()

Field Details

COPY

public static final CreateMode COPY= fromString("Copy")

Static value Copy for CreateMode.

DEFAULT

public static final CreateMode DEFAULT= fromString("Default")

Static value Default for CreateMode.

NON_READABLE_SECONDARY

public static final CreateMode NON_READABLE_SECONDARY= fromString("NonReadableSecondary")

Static value NonReadableSecondary for CreateMode.

ONLINE_SECONDARY

public static final CreateMode ONLINE_SECONDARY= fromString("OnlineSecondary")

Static value OnlineSecondary for CreateMode.

POINT_IN_TIME_RESTORE

public static final CreateMode POINT_IN_TIME_RESTORE= fromString("PointInTimeRestore")

Static value PointInTimeRestore for CreateMode.

RECOVERY

public static final CreateMode RECOVERY= fromString("Recovery")

Static value Recovery for CreateMode.

RESTORE

public static final CreateMode RESTORE= fromString("Restore")

Static value Restore for CreateMode.

RESTORE_LONG_TERM_RETENTION_BACKUP

public static final CreateMode RESTORE_LONG_TERM_RETENTION_BACKUP= fromString("RestoreLongTermRetentionBackup")

Static value RestoreLongTermRetentionBackup for CreateMode.

Constructor Details

CreateMode

public CreateMode(String value)

Creates a custom value for CreateMode.

Parameters:

value - the custom value

Method Details

equals

public boolean equals(Object obj)

Parameters:

obj

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

hashCode

public int hashCode()

toString

public String toString()

values

public static Collection values()

Returns:

known CreateMode values

Applies to