Class CloudEventsBuilder<T>
- java.lang.Object
-
- io.streamthoughts.azkarra.runtime.interceptors.monitoring.ce.CloudEventsAttributes
-
- io.streamthoughts.azkarra.runtime.interceptors.monitoring.ce.CloudEventsBuilder<T>
-
public class CloudEventsBuilder<T> extends CloudEventsAttributes
-
-
Field Summary
-
Fields inherited from class io.streamthoughts.azkarra.runtime.interceptors.monitoring.ce.CloudEventsAttributes
dataContentType, id, source, specVersion, time, type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudEventsEntity<T>
build()
Builds a new cloud event entitystatic <T> CloudEventsBuilder<T>
newBuilder()
CloudEventsBuilder<T>
withData(T data)
CloudEventsBuilder<T>
withDataContentType(String dataContentType)
CloudEventsBuilder<T>
withExtension(CloudEventsExtension extension)
CloudEventsBuilder<T>
withId(String id)
CloudEventsBuilder<T>
withSource(String source)
CloudEventsBuilder<T>
withSpecVersion(String specVersion)
CloudEventsBuilder<T>
withTime(ZonedDateTime time)
CloudEventsBuilder<T>
withType(String type)
-
Methods inherited from class io.streamthoughts.azkarra.runtime.interceptors.monitoring.ce.CloudEventsAttributes
dataContentType, equals, hashCode, id, source, specVersion, time, toString, type
-
-
-
-
Method Detail
-
newBuilder
public static <T> CloudEventsBuilder<T> newBuilder()
-
withId
public CloudEventsBuilder<T> withId(String id)
- See Also:
CloudEventsAttributes.id()
-
withType
public CloudEventsBuilder<T> withType(String type)
- See Also:
CloudEventsAttributes.type()
-
withSource
public CloudEventsBuilder<T> withSource(String source)
- See Also:
CloudEventsAttributes.source()
-
withSpecVersion
public CloudEventsBuilder<T> withSpecVersion(String specVersion)
- See Also:
CloudEventsAttributes.specVersion()
-
withTime
public CloudEventsBuilder<T> withTime(ZonedDateTime time)
- See Also:
CloudEventsAttributes.time()
-
withDataContentType
public CloudEventsBuilder<T> withDataContentType(String dataContentType)
- See Also:
CloudEventsAttributes.dataContentType()
-
withData
public CloudEventsBuilder<T> withData(T data)
-
withExtension
public CloudEventsBuilder<T> withExtension(CloudEventsExtension extension)
-
build
public CloudEventsEntity<T> build()
Builds a new cloud event entity- Returns:
- a new
CloudEventsEntity
instance.
-
-