DiffBackupIntervalInHours Class

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

Implements

public final class DiffBackupIntervalInHours
implements ExpandableEnum<Integer>, JsonSerializable<DiffBackupIntervalInHours>

The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases.

Field Summary

Modifier and Type Field and Description
static final DiffBackupIntervalInHours ONE_TWO
static final DiffBackupIntervalInHours TWO_FOUR

Method Summary

Modifier and Type Method and Description
boolean equals(Object obj)
static DiffBackupIntervalInHours fromJson(JsonReader jsonReader)

Reads an instance of DiffBackupIntervalInHours from the JsonReader.

static DiffBackupIntervalInHours fromValue(Integer value)

Creates or finds a DiffBackupIntervalInHours.

Integer getValue()

Gets the value of the DiffBackupIntervalInHours instance.

int hashCode()
JsonWriter toJson(JsonWriter jsonWriter)
String toString()
static Collection<DiffBackupIntervalInHours> values()

Gets known DiffBackupIntervalInHours values.

Methods inherited from java.lang.Object

Field Details

ONE_TWO

public static final DiffBackupIntervalInHours ONE_TWO

TWO_FOUR

public static final DiffBackupIntervalInHours TWO_FOUR

Method Details

equals

public boolean equals(Object obj)

Overrides:

DiffBackupIntervalInHours.equals(Object obj)

Parameters:

obj

fromJson

public static DiffBackupIntervalInHours fromJson(JsonReader jsonReader)

Reads an instance of DiffBackupIntervalInHours from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DiffBackupIntervalInHours if the JsonReader was pointing to an instance of it, or null if the JsonReader was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DiffBackupIntervalInHours.

fromValue

public static DiffBackupIntervalInHours fromValue(Integer value)

Creates or finds a DiffBackupIntervalInHours.

Parameters:

value - a value to look for.

Returns:

the corresponding DiffBackupIntervalInHours.

getValue

public Integer getValue()

Gets the value of the DiffBackupIntervalInHours instance.

Returns:

the value of the DiffBackupIntervalInHours instance.

hashCode

public int hashCode()

Overrides:

DiffBackupIntervalInHours.hashCode()

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

toString

public String toString()

Overrides:

DiffBackupIntervalInHours.toString()

values

public static Collection<DiffBackupIntervalInHours> values()

Gets known DiffBackupIntervalInHours values.

Returns:

Known DiffBackupIntervalInHours values.

Applies to