Package dev.cdevents.events
Class IncidentResolvedCDEvent
- java.lang.Object
-
- dev.cdevents.models.incident.resolved.Incidentresolved
-
- dev.cdevents.events.IncidentResolvedCDEvent
-
- All Implemented Interfaces:
CDEvent
public class IncidentResolvedCDEvent extends Incidentresolved implements CDEvent
-
-
Constructor Summary
Constructors Constructor Description IncidentResolvedCDEvent()Constructor to init CDEvent and set the Subject forIncidentResolvedCDEvent.
-
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)-
Methods inherited from class dev.cdevents.models.incident.resolved.Incidentresolved
equals, getContext, getCustomData, getCustomDataContentType, getSubject, hashCode, setContext, setCustomData, setCustomDataContentType, setSubject
-
-
-
-
Constructor Detail
-
IncidentResolvedCDEvent
public IncidentResolvedCDEvent()
Constructor to init CDEvent and set the Subject forIncidentResolvedCDEvent.
-
-
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 incidentresolved.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-
-
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-
-
-