Package com.azure.messaging.webpubsub
Enum WebPubSubServiceVersion
- java.lang.Object
-
- java.lang.Enum<WebPubSubServiceVersion>
-
- com.azure.messaging.webpubsub.WebPubSubServiceVersion
-
- All Implemented Interfaces:
com.azure.core.util.ServiceVersion,Serializable,Comparable<WebPubSubServiceVersion>
public enum WebPubSubServiceVersion extends Enum<WebPubSubServiceVersion> implements com.azure.core.util.ServiceVersion
Service version of WebPubSubService.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description V2021_10_01Enum value 2021-10-01.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebPubSubServiceVersiongetLatest()Gets the latest service version supported by this client library.StringgetVersion()static WebPubSubServiceVersionvalueOf(String name)Returns the enum constant of this type with the specified name.static WebPubSubServiceVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V2021_10_01
public static final WebPubSubServiceVersion V2021_10_01
Enum value 2021-10-01.
-
-
Method Detail
-
values
public static WebPubSubServiceVersion[] 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 (WebPubSubServiceVersion c : WebPubSubServiceVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebPubSubServiceVersion 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
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfacecom.azure.core.util.ServiceVersion
-
getLatest
public static WebPubSubServiceVersion getLatest()
Gets the latest service version supported by this client library.- Returns:
- The latest
WebPubSubServiceVersion.
-
-