Commit Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. sqlvirtualmachine. models. Commit
- com.
- com.
public final class Commit
extends ExpandableStringEnum<Commit>
Replica commit mode in availability group.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
| static final Commit |
ASYNCHRONOUS_COMMIT
Static value ASYNCHRONOUS_COMMIT for Commit. |
| static final Commit |
SYNCHRONOUS_COMMIT
Static value SYNCHRONOUS_COMMIT for Commit. |
Constructor Summary
| Constructor | Description |
|---|---|
| Commit() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Commit value. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Commit |
fromString(String name)
Creates or finds a Commit from its string representation. |
| static Collection<Commit> |
values()
Gets known Commit values. |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
ASYNCHRONOUS_COMMIT
public static final Commit ASYNCHRONOUS_COMMIT
Static value ASYNCHRONOUS_COMMIT for Commit.
SYNCHRONOUS_COMMIT
public static final Commit SYNCHRONOUS_COMMIT
Static value SYNCHRONOUS_COMMIT for Commit.
Constructor Details
Commit
@Deprecated
public Commit()
Deprecated
Creates a new instance of Commit value.
Method Details
fromString
public static Commit fromString(String name)
Creates or finds a Commit from its string representation.
Parameters:
Returns:
values
public static Collection<Commit> values()
Gets known Commit values.
Returns: