Enum Class ProxyType
- All Implemented Interfaces:
Serializable
,Comparable<ProxyType>
,Constable
Enum representing the type of a remote installation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents a common Internet connection.Represents a connection to an on-premise systems.Represents a connection within a private Hyperscaler network. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProxyType
ofIdentifier
(String identifier) Returns theProxyType
which equals the given identifier.static ProxyType
ofIdentifierOrDefault
(String identifier, ProxyType defaultProxyType) Returns theProxyType
which equals the given identifier, or thedefaultProxyType
in case there is none.static ProxyType
ofIdentifierSensitive
(String identifier) Returns theProxyType
which equals the given identifier.toString()
static ProxyType
Returns the enum constant of this class with the specified name.static ProxyType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INTERNET
Represents a common Internet connection. -
ON_PREMISE
Represents a connection to an on-premise systems. -
PRIVATE_LINK
Represents a connection within a private Hyperscaler network.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
ofIdentifierOrDefault
@Nonnull public static ProxyType ofIdentifierOrDefault(@Nullable String identifier, @Nonnull ProxyType defaultProxyType) Returns theProxyType
which equals the given identifier, or thedefaultProxyType
in case there is none.- Parameters:
identifier
- The identifier to get aProxyType
for.defaultProxyType
- TheProxyType
to return if no matchingProxyType
could be found.- Returns:
- The matching
ProxyType
or the default, if none is matching.
-
ofIdentifier
@Nonnull public static ProxyType ofIdentifier(@Nonnull String identifier) throws IllegalArgumentException Returns theProxyType
which equals the given identifier.- Parameters:
identifier
- The identifier to get aProxyType
for.- Returns:
- The matching
ProxyType
. - Throws:
IllegalArgumentException
- If the given identifier does not map to aProxyType
.
-
ofIdentifierSensitive
@Nonnull public static ProxyType ofIdentifierSensitive(@Nonnull String identifier) throws IllegalArgumentException Returns theProxyType
which equals the given identifier.The matching considers different spellings of
ProxyType.ON_PREMISE
.- Parameters:
identifier
- The identifier to get aProxyType
for.- Returns:
- The matching
ProxyType
. - Throws:
IllegalArgumentException
- If the given identifier does not map to aProxyType
.
-
toString
-
getIdentifier
-