Class DefaultCloudEventMetadataBuilder<T>
- java.lang.Object
-
- io.smallrye.reactive.messaging.ce.DefaultCloudEventMetadataBuilder<T>
-
public final class DefaultCloudEventMetadataBuilder<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description DefaultCloudEventMetadataBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseCloudEventMetadata<T>
build()
DefaultCloudEventMetadataBuilder<T>
withData(T data)
DefaultCloudEventMetadataBuilder<T>
withDataContentType(String dataContentType)
DefaultCloudEventMetadataBuilder<T>
withDataSchema(URI dataSchema)
DefaultCloudEventMetadataBuilder<T>
withExtension(String name, Object value)
DefaultCloudEventMetadataBuilder<T>
withExtensions(Map<String,Object> extensions)
DefaultCloudEventMetadataBuilder<T>
withId(String id)
DefaultCloudEventMetadataBuilder<T>
withoutExtension(String name)
DefaultCloudEventMetadataBuilder<T>
withSource(URI source)
DefaultCloudEventMetadataBuilder<T>
withSpecVersion(String specVersion)
DefaultCloudEventMetadataBuilder<T>
withSubject(String subject)
DefaultCloudEventMetadataBuilder<T>
withTimestamp(ZonedDateTime timestamp)
DefaultCloudEventMetadataBuilder<T>
withType(String type)
-
-
-
Method Detail
-
withId
public DefaultCloudEventMetadataBuilder<T> withId(String id)
-
withSpecVersion
public DefaultCloudEventMetadataBuilder<T> withSpecVersion(String specVersion)
-
withSource
public DefaultCloudEventMetadataBuilder<T> withSource(URI source)
-
withType
public DefaultCloudEventMetadataBuilder<T> withType(String type)
-
withDataContentType
public DefaultCloudEventMetadataBuilder<T> withDataContentType(String dataContentType)
-
withDataSchema
public DefaultCloudEventMetadataBuilder<T> withDataSchema(URI dataSchema)
-
withSubject
public DefaultCloudEventMetadataBuilder<T> withSubject(String subject)
-
withTimestamp
public DefaultCloudEventMetadataBuilder<T> withTimestamp(ZonedDateTime timestamp)
-
withExtensions
public DefaultCloudEventMetadataBuilder<T> withExtensions(Map<String,Object> extensions)
-
withExtension
public DefaultCloudEventMetadataBuilder<T> withExtension(String name, Object value)
-
withoutExtension
public DefaultCloudEventMetadataBuilder<T> withoutExtension(String name)
-
withData
public DefaultCloudEventMetadataBuilder<T> withData(T data)
-
build
public BaseCloudEventMetadata<T> build()
-
-