Interface CreateEventSourceResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateEventSourceResponse.Builder,,CreateEventSourceResponse> EventBridgeV2Response.Builder,SdkBuilder<CreateEventSourceResponse.Builder,,CreateEventSourceResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateEventSourceResponse
-
Method Summary
Modifier and TypeMethodDescriptioncreationTime(Instant creationTime) The time the EventSource was created.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.EventSource name.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.
-
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
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 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.
-