Interface DescribeEventSourceResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeEventSourceResponse.Builder,,DescribeEventSourceResponse> EventBridgeV2Response.Builder,SdkBuilder<DescribeEventSourceResponse.Builder,,DescribeEventSourceResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeEventSourceResponse
-
Method Summary
Modifier and TypeMethodDescriptionconfiguration(Consumer<EventSourceConfiguration.Builder> configuration) Discriminated EventSource configuration.configuration(EventSourceConfiguration configuration) Discriminated EventSource configuration.creationTime(Instant creationTime) The time the EventSource was created.description(String description) Free-text description.eventBusArn(String eventBusArn) The Amazon Resource Name (ARN) that uniquely identifies an event bus.eventSourceArn(String eventSourceArn) EventSource ARN: event-sourcev2/<type>/<name>/<id>.eventSourceDetails(Consumer<EventSourceDetails.Builder> eventSourceDetails) Values EventBridge generated for this EventSource type, such as a webhook's URL and the ARN of its secret.eventSourceDetails(EventSourceDetails eventSourceDetails) Values EventBridge generated for this EventSource type, such as a webhook's URL and the ARN of its secret.lastModifiedTime(Instant lastModifiedTime) The time the EventSource was last modified.EventSource name.True when the bus owner has withdrawn this EventSource.Lifecycle state of an EventSource.state(EventSourceState state) Lifecycle state of an EventSource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.eventbridgev2.model.EventBridgeV2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
default DescribeEventSourceResponse.Builder configuration(Consumer<EventSourceConfiguration.Builder> configuration) Discriminated EventSource configuration. Exactly one variant must be set.
This is a convenience method that creates an instance of theEventSourceConfiguration.Builderavoiding the need to create one manually viaEventSourceConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfiguration(EventSourceConfiguration).- Parameters:
configuration- a consumer that will call methods onEventSourceConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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 theEventSourceDetails.Builderavoiding the need to create one manually viaEventSourceDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeventSourceDetails(EventSourceDetails).- Parameters:
eventSourceDetails- a consumer that will call methods onEventSourceDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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.
-