| Package | Description |
|---|---|
| io.cloudevents.core.builder | |
| io.cloudevents.core.impl | |
| io.cloudevents.core.v03 |
| Modifier and Type | Method and Description |
|---|---|
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(String dataContentType,
byte[] 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.withDataContentType(String dataContentType)
Set the
datacontenttype of the event |
CloudEventBuilder |
CloudEventBuilder.withDataSchema(URI dataSchema)
Set the
dataschema of the event. |
CloudEventBuilder |
CloudEventBuilder.withExtension(Extension 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,
Number value)
Set an extension with provided key and numeric value
|
CloudEventBuilder |
CloudEventBuilder.withExtension(String key,
String value)
Set an extension with provided key and string value
|
CloudEventBuilder |
CloudEventBuilder.withId(String id)
Set the
id of the event |
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(ZonedDateTime 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 | Class and Description |
|---|---|
class |
CloudEventBuilder
CloudEvent V0.3 builder.
|
Copyright © 2020. All rights reserved.