Enum Class DestinationType

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

public enum DestinationType extends Enum<DestinationType>
Enum representing the types a destination can be of.
  • Enum Constant Details

  • Method Details

    • values

      public static DestinationType[] 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 DestinationType 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<DestinationType>
    • ofIdentifier

      @Nonnull public static DestinationType ofIdentifier(@Nonnull String identifier) throws IllegalArgumentException
      Returns the DestinationType which equals the given identifier.
      Parameters:
      identifier - The identifier to get a DestinationType for.
      Returns:
      The matching DestinationType.
      Throws:
      IllegalArgumentException - If the given identifier does not map to a DestinationType.
    • ofIdentifierOrDefault

      @Nonnull public static DestinationType ofIdentifierOrDefault(@Nullable String identifier, @Nonnull DestinationType defaultDestinationType)
      Returns the DestinationType which equals the given identifier, or the defaultDestinationType in case there is none.
      Parameters:
      identifier - The identifier to get a DestinationType for.
      defaultDestinationType - The DestinationType to return if no matching DestinationType could be found.
      Returns:
      The matching DestinationType or the default, if none is matching.
    • getIdentifier

      @Nonnull public String getIdentifier()