Package com.exoscale.sdk.model
Enum SecurityGroupResource.VisibilityEnum
- java.lang.Object
-
- java.lang.Enum<SecurityGroupResource.VisibilityEnum>
-
- com.exoscale.sdk.model.SecurityGroupResource.VisibilityEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<SecurityGroupResource.VisibilityEnum>
- Enclosing class:
- SecurityGroupResource
public static enum SecurityGroupResource.VisibilityEnum extends Enum<SecurityGroupResource.VisibilityEnum>
Whether this points to a public security group. This is only valid when in the context of a rule addition which uses a public security group as a source or destination.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecurityGroupResource.VisibilityEnum
fromValue(String value)
String
getValue()
String
toString()
static SecurityGroupResource.VisibilityEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static SecurityGroupResource.VisibilityEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRIVATE
public static final SecurityGroupResource.VisibilityEnum PRIVATE
-
PUBLIC
public static final SecurityGroupResource.VisibilityEnum PUBLIC
-
-
Method Detail
-
values
public static SecurityGroupResource.VisibilityEnum[] 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 (SecurityGroupResource.VisibilityEnum c : SecurityGroupResource.VisibilityEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SecurityGroupResource.VisibilityEnum 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
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toString
in classEnum<SecurityGroupResource.VisibilityEnum>
-
fromValue
public static SecurityGroupResource.VisibilityEnum fromValue(String value)
-
-