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>
Retention duration type of retention policy.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RetentionDurationType
Static value Days for RetentionDurationType.static final RetentionDurationType
Static value Invalid for RetentionDurationType.static final RetentionDurationType
Static value Months for RetentionDurationType.static final RetentionDurationType
Static value Weeks for RetentionDurationType.static final RetentionDurationType
Static value Years for RetentionDurationType. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RetentionDurationType
fromString
(String name) Creates or finds a RetentionDurationType from its string representation.static Collection<RetentionDurationType>
values()
Gets known RetentionDurationType values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
INVALID
Static value Invalid for RetentionDurationType. -
DAYS
Static value Days for RetentionDurationType. -
WEEKS
Static value Weeks for RetentionDurationType. -
MONTHS
Static value Months for RetentionDurationType. -
YEARS
Static value Years for RetentionDurationType.
-
-
Constructor Details
-
RetentionDurationType
public RetentionDurationType()
-
-
Method Details
-
fromString
Creates or finds a RetentionDurationType from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding RetentionDurationType.
-
values
Gets known RetentionDurationType values.- Returns:
- known RetentionDurationType values.
-