Package dev.cdevents.events
Class IncidentReportedCDEvent
- java.lang.Object
-
- dev.cdevents.models.incident.reported.Incidentreported
-
- dev.cdevents.events.IncidentReportedCDEvent
-
- All Implemented Interfaces:
CDEvent
public class IncidentReportedCDEvent extends Incidentreported implements CDEvent
-
-
Constructor Summary
Constructors Constructor Description IncidentReportedCDEvent()Constructor to init CDEvent and set the Subject forIncidentReportedCDEvent.
-
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)voidsetSubjectArtifactId(String artifactId)voidsetSubjectDescription(String description)voidsetSubjectEnvironmentId(String id)voidsetSubjectEnvironmentSource(String source)voidsetSubjectId(String subjectId)voidsetSubjectServiceId(String id)voidsetSubjectServiceSource(String source)voidsetSubjectSource(URI subjectSource)voidsetSubjectTicketURI(URI ticketURI)-
Methods inherited from class dev.cdevents.models.incident.reported.Incidentreported
equals, getContext, getCustomData, getCustomDataContentType, getSubject, hashCode, setContext, setCustomData, setCustomDataContentType, setSubject
-
-
-
-
Constructor Detail
-
IncidentReportedCDEvent
public IncidentReportedCDEvent()
Constructor to init CDEvent and set the Subject forIncidentReportedCDEvent.
-
-
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 incidentreported.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
-
setSubjectDescription
public void setSubjectDescription(String description)
- Parameters:
description-
-
setSubjectTicketURI
public void setSubjectTicketURI(URI ticketURI)
- Parameters:
ticketURI-
-
setSubjectArtifactId
public void setSubjectArtifactId(String artifactId)
- Parameters:
artifactId-
-
setSubjectEnvironmentId
public void setSubjectEnvironmentId(String id)
- Parameters:
id-
-
setSubjectEnvironmentSource
public void setSubjectEnvironmentSource(String source)
- Parameters:
source-
-
setSubjectServiceId
public void setSubjectServiceId(String id)
- Parameters:
id-
-
setSubjectServiceSource
public void setSubjectServiceSource(String source)
- Parameters:
source-
-
-