Class RetentionDurationType
- java.lang.Object
-
- com.azure.core.util.ExpandableStringEnum<RetentionDurationType>
-
- com.azure.resourcemanager.recoveryservicesbackup.models.RetentionDurationType
-
public final class RetentionDurationType extends com.azure.core.util.ExpandableStringEnum<RetentionDurationType>
Defines values for RetentionDurationType.
-
-
Field Summary
Fields Modifier and Type Field Description static RetentionDurationType
DAYS
Static value Days for RetentionDurationType.static RetentionDurationType
INVALID
Static value Invalid for RetentionDurationType.static RetentionDurationType
MONTHS
Static value Months for RetentionDurationType.static RetentionDurationType
WEEKS
Static value Weeks for RetentionDurationType.static RetentionDurationType
YEARS
Static value Years for RetentionDurationType.
-
Constructor Summary
Constructors Constructor Description RetentionDurationType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RetentionDurationType
fromString(String name)
Creates or finds a RetentionDurationType from its string representation.static Collection<RetentionDurationType>
values()
Gets known RetentionDurationType values.
-
-
-
Field Detail
-
INVALID
public static final RetentionDurationType INVALID
Static value Invalid for RetentionDurationType.
-
DAYS
public static final RetentionDurationType DAYS
Static value Days for RetentionDurationType.
-
WEEKS
public static final RetentionDurationType WEEKS
Static value Weeks for RetentionDurationType.
-
MONTHS
public static final RetentionDurationType MONTHS
Static value Months for RetentionDurationType.
-
YEARS
public static final RetentionDurationType YEARS
Static value Years for RetentionDurationType.
-
-
Method Detail
-
fromString
public static RetentionDurationType fromString(String name)
Creates or finds a RetentionDurationType from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding RetentionDurationType.
-
values
public static Collection<RetentionDurationType> values()
Gets known RetentionDurationType values.- Returns:
- known RetentionDurationType values.
-
-