Package dev.cdevents.events
Class BuildQueuedCDEvent
- java.lang.Object
-
- dev.cdevents.models.build.queued.Buildqueued
-
- dev.cdevents.events.BuildQueuedCDEvent
-
- All Implemented Interfaces:
CDEvent
public class BuildQueuedCDEvent extends Buildqueued implements CDEvent
-
-
Constructor Summary
Constructors Constructor Description BuildQueuedCDEvent()Constructor to init CDEvent and set the Subject forBuildQueuedCDEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcurrentCDEventType()StringeventSchema()StringeventSource()voidinitCDEvent()Initialize the CDEvent with the context values.StringschemaURL()voidsetSource(URI source)voidsetSubjectId(String subjectId)voidsetSubjectSource(URI subjectSource)-
Methods inherited from class dev.cdevents.models.build.queued.Buildqueued
equals, getContext, getCustomData, getCustomDataContentType, getSubject, hashCode, setContext, setCustomData, setCustomDataContentType, setSubject
-
-
-
-
Constructor Detail
-
BuildQueuedCDEvent
public BuildQueuedCDEvent()
Constructor to init CDEvent and set the Subject forBuildQueuedCDEvent.
-
-
Method Detail
-
initCDEvent
public void initCDEvent()
Initialize the CDEvent with the context values.- Specified by:
initCDEventin interfaceCDEvent
-
eventSource
public String eventSource()
- Specified by:
eventSourcein interfaceCDEvent- Returns:
- the event source
-
currentCDEventType
public String currentCDEventType()
- Specified by:
currentCDEventTypein interfaceCDEvent- Returns:
- the current CDEvent type
-
schemaURL
public String schemaURL()
-
eventSchema
public String eventSchema()
- Specified by:
eventSchemain interfaceCDEvent- Returns:
- the buildqueued.json schema Json
-
setSubjectId
public void setSubjectId(String subjectId)
- Parameters:
subjectId- sets the subject Id
-
setSubjectSource
public void setSubjectSource(URI subjectSource)
- Parameters:
subjectSource- sets the subject source
-
-