Interface CreateEventSourceRequest.Builder

  • Method Details

    • 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

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

      CreateEventSourceRequest.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.
    • tags

      Tags attached to a resource, as key-value pairs.

      Parameters:
      tags - Tags attached to a resource, as key-value pairs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientToken

      CreateEventSourceRequest.Builder clientToken(String clientToken)

      Unique, case-sensitive identifier that ensures the idempotency of the request. The SDK generates one automatically when the field is omitted.

      Parameters:
      clientToken - Unique, case-sensitive identifier that ensures the idempotency of the request. The SDK generates one automatically when the field is omitted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateEventSourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.