java.io.Serializable, java.lang.Comparable<CreateEncryptionZoneFlag>@Public @Evolving public enum CreateEncryptionZoneFlag extends java.lang.Enum<CreateEncryptionZoneFlag>
HdfsAdmin.createEncryptionZone(Path, String, EnumSet) to indicate
what should be done when creating an encryption zone.
Use CreateEncryptionZoneFlag as follows:
| Enum Constant | Description |
|---|---|
NO_TRASH |
Do not provision a trash directory in the encryption zone.
|
PROVISION_TRASH |
Provision a trash directory .Trash/ in the
encryption zone.
|
| Modifier and Type | Method | Description |
|---|---|---|
short |
getMode() |
|
static CreateEncryptionZoneFlag |
valueOf(short mode) |
Returns the enum constant of this type with the specified name.
|
static CreateEncryptionZoneFlag |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static CreateEncryptionZoneFlag[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreateEncryptionZoneFlag NO_TRASH
NO_TRASHpublic static final CreateEncryptionZoneFlag PROVISION_TRASH
PROVISION_TRASHpublic static CreateEncryptionZoneFlag[] values()
for (CreateEncryptionZoneFlag c : CreateEncryptionZoneFlag.values()) System.out.println(c);
public static CreateEncryptionZoneFlag valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static CreateEncryptionZoneFlag valueOf(short mode)
mode - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic short getMode()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.