Class TlsVersion
java.lang.Object
com.azure.core.util.ExpandableStringEnum<TlsVersion>
com.azure.resourcemanager.redis.models.TlsVersion
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TlsVersion
Static value 1.1 for TlsVersion.static final TlsVersion
Static value 1.2 for TlsVersion.static final TlsVersion
Static value 1.0 for TlsVersion. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TlsVersion
fromString
(String name) Creates or finds a TlsVersion from its string representation.static Collection
<TlsVersion> values()
Gets known TlsVersion values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
ONE_ZERO
Static value 1.0 for TlsVersion. -
ONE_ONE
Static value 1.1 for TlsVersion. -
ONE_TWO
Static value 1.2 for TlsVersion.
-
-
Constructor Details
-
TlsVersion
Deprecated.Use thefromString(String)
factory method.Creates a new instance of TlsVersion value.
-
-
Method Details
-
fromString
Creates or finds a TlsVersion from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding TlsVersion.
-
values
Gets known TlsVersion values.- Returns:
- known TlsVersion values.
-
fromString(String)
factory method.