Enum FileExpirationOffset
- java.lang.Object
-
- java.lang.Enum<FileExpirationOffset>
-
- com.azure.storage.file.datalake.models.FileExpirationOffset
-
- All Implemented Interfaces:
Serializable
,Comparable<FileExpirationOffset>
public enum FileExpirationOffset extends Enum<FileExpirationOffset>
Enum to specify when a file's expiration time should be relative to.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATION_TIME
Files's expiration time should be set relative to the file creation time.NOW
Files's expiration time should be set relative to the current time.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileExpirationOffset
valueOf(String name)
Returns the enum constant of this type with the specified name.static FileExpirationOffset[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATION_TIME
public static final FileExpirationOffset CREATION_TIME
Files's expiration time should be set relative to the file creation time.
-
NOW
public static final FileExpirationOffset NOW
Files's expiration time should be set relative to the current time.
-
-
Method Detail
-
values
public static FileExpirationOffset[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileExpirationOffset c : FileExpirationOffset.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileExpirationOffset valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-