| Package | Description |
|---|---|
| io.cloudevents.core.builder | |
| io.cloudevents.core.impl | |
| io.cloudevents.core.v1 |
| Modifier and Type | Method and Description |
|---|---|
static CloudEventBuilder |
CloudEventBuilder.from(CloudEvent event)
Create a new builder starting from the values of the provided event.
|
static CloudEventBuilder |
CloudEventBuilder.fromContext(CloudEventContext context)
Create a new builder starting from the values of the provided context.
|
static CloudEventBuilder |
CloudEventBuilder.fromSpecVersion(SpecVersion version)
Create a new builder for the specified
SpecVersion |
CloudEventBuilder |
CloudEventBuilder.newBuilder()
Copy this builder, creating a new instance with same values.
|
CloudEventBuilder |
CloudEventBuilder.withData(byte[] data)
Set the
data of the event |
CloudEventBuilder |
CloudEventBuilder.withData(CloudEventData data)
Set the
data of the event |
CloudEventBuilder |
CloudEventBuilder.withData(String dataContentType,
byte[] data)
Set the
datacontenttype and data of the event |
CloudEventBuilder |
CloudEventBuilder.withData(String dataContentType,
CloudEventData data)
Set the
datacontenttype and data of the event |
CloudEventBuilder |
CloudEventBuilder.withData(String dataContentType,
URI dataSchema,
byte[] data)
Set the
datacontenttype, dataschema and data of the event |
CloudEventBuilder |
CloudEventBuilder.withData(String dataContentType,
URI dataSchema,
CloudEventData data)
Set the
datacontenttype, dataschema and data of the event |
CloudEventBuilder |
CloudEventBuilder.withDataContentType(String dataContentType)
Set the
datacontenttype of the event |
CloudEventBuilder |
CloudEventBuilder.withDataSchema(URI dataSchema)
Set the
dataschema of the event. |
CloudEventBuilder |
CloudEventBuilder.withExtension(CloudEventExtension extension)
Add to the builder all the extension key/values of the provided extension
|
CloudEventBuilder |
CloudEventBuilder.withExtension(String key,
Boolean value)
Set an extension with provided key and boolean value
|
CloudEventBuilder |
CloudEventBuilder.withExtension(String key,
byte[] value)
Set an extension with provided key and binary value
|
CloudEventBuilder |
CloudEventBuilder.withExtension(String key,
Number value)
Set an extension with provided key and numeric value
|
CloudEventBuilder |
CloudEventBuilder.withExtension(String key,
OffsetDateTime value)
Set an extension with provided key and boolean value
|
CloudEventBuilder |
CloudEventBuilder.withExtension(String key,
String value)
Set an extension with provided key and string value
|
CloudEventBuilder |
CloudEventBuilder.withExtension(String key,
URI value)
Set an extension with provided key and uri value
|
CloudEventBuilder |
CloudEventBuilder.withId(String id)
Set the
id of the event |
CloudEventBuilder |
CloudEventBuilder.withoutData()
Remove the
datacontenttype, dataschema and data from the event |
CloudEventBuilder |
CloudEventBuilder.withoutDataContentType()
Remove the
datacontenttype from the event |
CloudEventBuilder |
CloudEventBuilder.withoutDataSchema()
Remove the
dataschema from the event |
CloudEventBuilder |
CloudEventBuilder.withoutExtension(CloudEventExtension extension)
Remove from the the builder the provided extension, if any
|
CloudEventBuilder |
CloudEventBuilder.withoutExtension(String key)
Remove from the the builder the provided extension key, if any
|
CloudEventBuilder |
CloudEventBuilder.withSource(URI source)
Set the
source of the event |
CloudEventBuilder |
CloudEventBuilder.withSubject(String subject)
Set the
subject of the event |
CloudEventBuilder |
CloudEventBuilder.withTime(OffsetDateTime time)
Set the
time of the event |
CloudEventBuilder |
CloudEventBuilder.withType(String type)
Set the
type of the event |
| Modifier and Type | Class and Description |
|---|---|
class |
BaseCloudEventBuilder<SELF extends BaseCloudEventBuilder<SELF,T>,T extends CloudEvent> |
| Modifier and Type | Method and Description |
|---|---|
CloudEventBuilder |
BaseCloudEventBuilder.withExtension(String key,
byte[] value) |
CloudEventBuilder |
BaseCloudEventBuilder.withoutData() |
CloudEventBuilder |
BaseCloudEventBuilder.withoutDataContentType() |
CloudEventBuilder |
BaseCloudEventBuilder.withoutDataSchema() |
| Modifier and Type | Class and Description |
|---|---|
class |
CloudEventBuilder
CloudEvent V1.0 builder.
|
Copyright © 2023. All rights reserved.