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