Enum Class ProxyType

java.lang.Object
java.lang.Enum<ProxyType>
com.sap.cloud.sdk.cloudplatform.connectivity.ProxyType
All Implemented Interfaces:
Serializable, Comparable<ProxyType>, Constable

public enum ProxyType extends Enum<ProxyType>
Enum representing the type of a remote installation.
  • Enum Constant Details

    • INTERNET

      public static final ProxyType INTERNET
      Represents a common Internet connection.
    • ON_PREMISE

      public static final ProxyType ON_PREMISE
      Represents a connection to an on-premise systems.
  • Method Details

    • values

      public static ProxyType[] 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

      public static ProxyType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • ofIdentifierOrDefault

      @Nonnull public static ProxyType ofIdentifierOrDefault(@Nullable String identifier, @Nonnull ProxyType defaultProxyType)
      Returns the ProxyType which equals the given identifier, or the defaultProxyType in case there is none.
      Parameters:
      identifier - The identifier to get a ProxyType for.
      defaultProxyType - The ProxyType to return if no matching ProxyType 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 the ProxyType which equals the given identifier.
      Parameters:
      identifier - The identifier to get a ProxyType for.
      Returns:
      The matching ProxyType.
      Throws:
      IllegalArgumentException - If the given identifier does not map to a ProxyType.
    • ofIdentifierSensitive

      @Nonnull public static ProxyType ofIdentifierSensitive(@Nonnull String identifier) throws IllegalArgumentException
      Returns the ProxyType which equals the given identifier.

      The matching considers different spellings of ProxyType.ON_PREMISE.

      Parameters:
      identifier - The identifier to get a ProxyType for.
      Returns:
      The matching ProxyType.
      Throws:
      IllegalArgumentException - If the given identifier does not map to a ProxyType.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ProxyType>
    • getIdentifier

      public String getIdentifier()