Interface CreateEventBusResponse.Builder

  • Method Details

    • eventBusArn

      CreateEventBusResponse.Builder eventBusArn(String eventBusArn)

      The Amazon Resource Name (ARN) that uniquely identifies an event bus.

      Parameters:
      eventBusArn - The Amazon Resource Name (ARN) that uniquely identifies an event bus.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Name of an event bus. The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'. The grammar matches the name segment of EventBusArn (event-busv2/<name>/<id>), so every valid name can be represented in the bus's ARN. The same type is used everywhere a bus name appears.

      Parameters:
      name - Name of an event bus. The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'. The grammar matches the name segment of EventBusArn (event-busv2/<name>/<id>), so every valid name can be represented in the bus's ARN. The same type is used everywhere a bus name appears.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      CreateEventBusResponse.Builder description(String description)

      Free-text description. Used by every resource type that has one: event buses, subscribers, and event sources.

      Parameters:
      description - Free-text description. Used by every resource type that has one: event buses, subscribers, and event sources.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • encryptionConfiguration

      CreateEventBusResponse.Builder encryptionConfiguration(EncryptionConfiguration encryptionConfiguration)

      Encryption configuration for an event bus.

      Parameters:
      encryptionConfiguration - Encryption configuration for an event bus.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • encryptionConfiguration

      default CreateEventBusResponse.Builder encryptionConfiguration(Consumer<EncryptionConfiguration.Builder> encryptionConfiguration)

      Encryption configuration for an event bus.

      This is a convenience method that creates an instance of the EncryptionConfiguration.Builder avoiding the need to create one manually via EncryptionConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to encryptionConfiguration(EncryptionConfiguration).

      Parameters:
      encryptionConfiguration - a consumer that will call methods on EncryptionConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • storageConfiguration

      CreateEventBusResponse.Builder storageConfiguration(StorageConfigurationOutput storageConfiguration)

      Event storage configuration of an event bus, as returned on reads.

      Parameters:
      storageConfiguration - Event storage configuration of an event bus, as returned on reads.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • storageConfiguration

      default CreateEventBusResponse.Builder storageConfiguration(Consumer<StorageConfigurationOutput.Builder> storageConfiguration)

      Event storage configuration of an event bus, as returned on reads.

      This is a convenience method that creates an instance of the StorageConfigurationOutput.Builder avoiding the need to create one manually via StorageConfigurationOutput.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to storageConfiguration(StorageConfigurationOutput).

      Parameters:
      storageConfiguration - a consumer that will call methods on StorageConfigurationOutput.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      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.

      Parameters:
      state - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      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.

      Parameters:
      state - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • stateReason

      CreateEventBusResponse.Builder stateReason(String stateReason)

      Human-readable explanation of why an event bus is in its current State. Omitted when the bus is in a normal operational state (ACTIVE). It stands in for the error response an asynchronous failure cannot return, so it applies only to resources with an asynchronous lifecycle: event buses. EventSources and subscribers are provisioned synchronously and report failures directly on the request.

      Parameters:
      stateReason - Human-readable explanation of why an event bus is in its current State. Omitted when the bus is in a normal operational state (ACTIVE). It stands in for the error response an asynchronous failure cannot return, so it applies only to resources with an asynchronous lifecycle: event buses. EventSources and subscribers are provisioned synchronously and report failures directly on the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationTime

      CreateEventBusResponse.Builder creationTime(Instant creationTime)

      The time the event bus was created.

      Parameters:
      creationTime - The time the event bus was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.