Enum BusState

java.lang.Object
java.lang.Enum<BusState>
software.amazon.awssdk.services.eventbridgev2.model.BusState
All Implemented Interfaces:
Serializable, Comparable<BusState>

@Generated("software.amazon.awssdk:codegen") public enum BusState extends Enum<BusState>

Lifecycle state of an event bus.

  • CREATING: Bus creation is in progress.
  • CREATE_FAILED: Bus creation failed; see StateReason. The bus cannot be recovered or recreated in place: delete it with DeleteEventBus, then create a new bus.
  • ACTIVE: Bus is fully operational and can accept events.
  • UPDATING: Bus update is in progress.
  • UPDATE_FAILED: Bus update failed; the bus remains operational with its previous configuration.
  • DELETING: Bus deletion is actively in progress.
  • DELETE_FAILED: Bus deletion failed; see StateReason. Retry DeleteEventBus after removing subscribers and event sources.
  • Enum Constant Details

    • CREATING

      public static final BusState CREATING
    • CREATE_FAILED

      public static final BusState CREATE_FAILED
    • UPDATING

      public static final BusState UPDATING
    • UPDATE_FAILED

      public static final BusState UPDATE_FAILED
    • DELETING

      public static final BusState DELETING
    • ACTIVE

      public static final BusState ACTIVE
    • DELETE_FAILED

      public static final BusState DELETE_FAILED
    • UNKNOWN_TO_SDK_VERSION

      public static final BusState UNKNOWN_TO_SDK_VERSION
  • Method Details

    • values

      public static BusState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BusState 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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<BusState>
    • fromValue

      public static BusState fromValue(String value)
      Use this in place of valueOf to convert the raw string returned by the service into the enum value.
      Parameters:
      value - real value
      Returns:
      BusState corresponding to the value
    • knownValues

      public static Set<BusState> knownValues()
      Use this in place of values() to return a Set of all values known to the SDK. This will return all known enum values except UNKNOWN_TO_SDK_VERSION.
      Returns:
      a Set of known BusStates