public final class DefaultCloudEventMetadataBuilder<T> extends Object
Constructor and Description |
---|
DefaultCloudEventMetadataBuilder() |
Modifier and Type | Method and 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) |
public DefaultCloudEventMetadataBuilder<T> withId(String id)
public DefaultCloudEventMetadataBuilder<T> withSpecVersion(String specVersion)
public DefaultCloudEventMetadataBuilder<T> withSource(URI source)
public DefaultCloudEventMetadataBuilder<T> withType(String type)
public DefaultCloudEventMetadataBuilder<T> withDataContentType(String dataContentType)
public DefaultCloudEventMetadataBuilder<T> withDataSchema(URI dataSchema)
public DefaultCloudEventMetadataBuilder<T> withSubject(String subject)
public DefaultCloudEventMetadataBuilder<T> withTimestamp(ZonedDateTime timestamp)
public DefaultCloudEventMetadataBuilder<T> withExtensions(Map<String,Object> extensions)
public DefaultCloudEventMetadataBuilder<T> withExtension(String name, Object value)
public DefaultCloudEventMetadataBuilder<T> withoutExtension(String name)
public DefaultCloudEventMetadataBuilder<T> withData(T data)
public BaseCloudEventMetadata<T> build()
Copyright © 2018–2021 SmallRye. All rights reserved.