Package org.ovirt.engine.sdk4.types
Enum AccessProtocol
- java.lang.Object
-
- java.lang.Enum<AccessProtocol>
-
- org.ovirt.engine.sdk4.types.AccessProtocol
-
- All Implemented Interfaces:
Serializable
,Comparable<AccessProtocol>
public enum AccessProtocol extends Enum<AccessProtocol>
Represents the access protocols supported by Gluster volumes. `gluster` and `nfs` are enabled by default.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccessProtocol
fromValue(String value)
String
value()
static AccessProtocol
valueOf(String name)
Returns the enum constant of this type with the specified name.static AccessProtocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CIFS
public static final AccessProtocol CIFS
CIFS access protocol.
-
GLUSTER
public static final AccessProtocol GLUSTER
Gluster access protocol.
-
NFS
public static final AccessProtocol NFS
NFS access protocol.
-
-
Method Detail
-
values
public static AccessProtocol[] 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 (AccessProtocol c : AccessProtocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccessProtocol 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
-
value
public String value()
-
fromValue
public static AccessProtocol fromValue(String value)
-
-