Package dev.cdevents.events
Class BuildFinishedCDEvent
- java.lang.Object
-
- dev.cdevents.models.CDEvent
-
- dev.cdevents.events.BuildFinishedCDEvent
-
public class BuildFinishedCDEvent extends CDEvent
-
-
Constructor Summary
Constructors Constructor Description BuildFinishedCDEvent()Constructor to init CDEvent and set the Subject forBuildFinishedCDEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcurrentCDEventType()StringeventSchema()BuildFinishedSubjectgetSubject()StringschemaURL()voidsetSubject(BuildFinishedSubject subject)voidsetSubjectArtifactId(com.github.packageurl.PackageURL artifactId)voidsetSubjectId(String subjectId)voidsetSubjectSource(URI subjectSource)-
Methods inherited from class dev.cdevents.models.CDEvent
getContext, getCustomData, getCustomDataContentType, initCDEvent, setContext, setCustomData, setCustomDataContentType, setSource
-
-
-
-
Constructor Detail
-
BuildFinishedCDEvent
public BuildFinishedCDEvent()
Constructor to init CDEvent and set the Subject forBuildFinishedCDEvent.
-
-
Method Detail
-
getSubject
public BuildFinishedSubject getSubject()
- Returns:
- subject
-
setSubject
public void setSubject(BuildFinishedSubject subject)
- Parameters:
subject-
-
currentCDEventType
public String currentCDEventType()
- Specified by:
currentCDEventTypein classCDEvent- Returns:
- the current CDEvent type
-
schemaURL
public String schemaURL()
-
eventSchema
public String eventSchema()
- Specified by:
eventSchemain classCDEvent- Returns:
- the build-finished-event 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
-
setSubjectArtifactId
public void setSubjectArtifactId(com.github.packageurl.PackageURL artifactId)
- Parameters:
artifactId- sets the subjects artifactId in PURL format
-
-