Interface DescribeEventSourceResponse.Builder

  • Method Details

    • eventSourceArn

      DescribeEventSourceResponse.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

      DescribeEventSourceResponse.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.
    • configuration

      Discriminated EventSource configuration. Exactly one variant must be set.

      Parameters:
      configuration - Discriminated EventSource configuration. Exactly one variant must be set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configuration

      Discriminated EventSource configuration. Exactly one variant must be set.

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

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

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

      DescribeEventSourceResponse.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.
    • 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:
    • revoked

      True when the bus owner has withdrawn this EventSource. Present only when true, so an absent member means the EventSource is not revoked. Revocation is terminal: it never returns to false. Mutating operations on a revoked EventSource fail with InvalidStateException, except DeleteEventSource, which stays available so a revoked EventSource can still be cleaned up.

      Parameters:
      revoked - True when the bus owner has withdrawn this EventSource. Present only when true, so an absent member means the EventSource is not revoked. Revocation is terminal: it never returns to false. Mutating operations on a revoked EventSource fail with InvalidStateException, except DeleteEventSource, which stays available so a revoked EventSource can still be cleaned up.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventSourceDetails

      DescribeEventSourceResponse.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 DescribeEventSourceResponse.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

      DescribeEventSourceResponse.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.
    • lastModifiedTime

      DescribeEventSourceResponse.Builder lastModifiedTime(Instant lastModifiedTime)

      The time the EventSource was last modified.

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