Enum APIInfoDTO.AudienceEnum
- java.lang.Object
-
- java.lang.Enum<APIInfoDTO.AudienceEnum>
-
- org.wso2.am.integration.clients.publisher.api.v1.dto.APIInfoDTO.AudienceEnum
-
- All Implemented Interfaces:
Serializable,Comparable<APIInfoDTO.AudienceEnum>
- Enclosing class:
- APIInfoDTO
public static enum APIInfoDTO.AudienceEnum extends Enum<APIInfoDTO.AudienceEnum>
The audience of the API. Accepted values are PUBLIC, SINGLE
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAPIInfoDTO.AudienceEnum.Adapter
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static APIInfoDTO.AudienceEnumfromValue(String value)StringgetValue()StringtoString()static APIInfoDTO.AudienceEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static APIInfoDTO.AudienceEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLIC
public static final APIInfoDTO.AudienceEnum PUBLIC
-
SINGLE
public static final APIInfoDTO.AudienceEnum SINGLE
-
-
Method Detail
-
values
public static APIInfoDTO.AudienceEnum[] 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 (APIInfoDTO.AudienceEnum c : APIInfoDTO.AudienceEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static APIInfoDTO.AudienceEnum 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:
toStringin classEnum<APIInfoDTO.AudienceEnum>
-
fromValue
public static APIInfoDTO.AudienceEnum fromValue(String value)
-
-