Enum VideoResolution
- java.lang.Object
-
- java.lang.Enum<VideoResolution>
-
- com.microsoft.azure.cognitiveservices.search.videosearch.models.VideoResolution
-
- All Implemented Interfaces:
Serializable,Comparable<VideoResolution>
public enum VideoResolution extends Enum<VideoResolution>
Defines values for VideoResolution.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VideoResolutionfromString(String value)Parses a serialized value to a VideoResolution instance.StringtoString()static VideoResolutionvalueOf(String name)Returns the enum constant of this type with the specified name.static VideoResolution[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final VideoResolution ALL
Enum value All.
-
SD480P
public static final VideoResolution SD480P
Enum value SD480p.
-
HD720P
public static final VideoResolution HD720P
Enum value HD720p.
-
HD1080P
public static final VideoResolution HD1080P
Enum value HD1080p.
-
-
Method Detail
-
values
public static VideoResolution[] 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 (VideoResolution c : VideoResolution.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VideoResolution 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
-
fromString
public static VideoResolution fromString(String value)
Parses a serialized value to a VideoResolution instance.- Parameters:
value- the serialized value to parse.- Returns:
- the parsed VideoResolution object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toStringin classEnum<VideoResolution>
-
-