Interface CreateEventSourceResponse.Builder

  • Method Details

    • eventSourceArn

      CreateEventSourceResponse.Builder eventSourceArn(String eventSourceArn)

      EventSource ARN: event-sourcev2/<type>/<name>/<id>. The type segment is set by the service (aws.service for AWS service events, aws.partner for partner events, webhook for webhook events) and is not part of the resource's name. The id segment is a 25-character identifier generated by the service.

      Parameters:
      eventSourceArn - EventSource ARN: event-sourcev2/<type>/<name>/<id>. The type segment is set by the service (aws.service for AWS service events, aws.partner for partner events, webhook for webhook events) and is not part of the resource's name. The id segment is a 25-character identifier generated by the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      EventSource name. First character alphanumeric; the rest may add '.', '-', '_'. Names may not begin with the reserved "aws." prefix. The grammar matches the ARN local-name segment in EventSourceArn (event-sourcev2/<type>/<name>/<id>), mirroring EventBusName, so a name the ARN cannot represent cannot be created.

      Parameters:
      name - EventSource name. First character alphanumeric; the rest may add '.', '-', '_'. Names may not begin with the reserved "aws." prefix. The grammar matches the ARN local-name segment in EventSourceArn (event-sourcev2/<type>/<name>/<id>), mirroring EventBusName, so a name the ARN cannot represent cannot be created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventBusArn

      CreateEventSourceResponse.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.
    • state

      Lifecycle state of an EventSource. Revocation is reported by the Revoked flag.

      Parameters:
      state - Lifecycle state of an EventSource. Revocation is reported by the Revoked flag.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      Lifecycle state of an EventSource. Revocation is reported by the Revoked flag.

      Parameters:
      state - Lifecycle state of an EventSource. Revocation is reported by the Revoked flag.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • eventSourceDetails

      CreateEventSourceResponse.Builder eventSourceDetails(EventSourceDetails eventSourceDetails)

      Values EventBridge generated for this EventSource type, such as a webhook's URL and the ARN of its secret. Absent for EventSource types that have no generated values.

      Parameters:
      eventSourceDetails - Values EventBridge generated for this EventSource type, such as a webhook's URL and the ARN of its secret. Absent for EventSource types that have no generated values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventSourceDetails

      default CreateEventSourceResponse.Builder eventSourceDetails(Consumer<EventSourceDetails.Builder> eventSourceDetails)

      Values EventBridge generated for this EventSource type, such as a webhook's URL and the ARN of its secret. Absent for EventSource types that have no generated values.

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

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

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

      CreateEventSourceResponse.Builder creationTime(Instant creationTime)

      The time the EventSource was created.

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