Package dev.cdevents.events
Class ServiceDeployedCDEvent
- java.lang.Object
-
- dev.cdevents.models.service.deployed.Servicedeployed
-
- dev.cdevents.events.ServiceDeployedCDEvent
-
- All Implemented Interfaces:
CDEvent
public class ServiceDeployedCDEvent extends Servicedeployed implements CDEvent
-
-
Constructor Summary
Constructors Constructor Description ServiceDeployedCDEvent()Constructor to init CDEvent and set the Subject forServiceDeployedCDEvent.
-
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)voidsetSubjectEnvironmentId(String id)voidsetSubjectEnvironmentSource(String source)voidsetSubjectId(String subjectId)voidsetSubjectSource(URI subjectSource)-
Methods inherited from class dev.cdevents.models.service.deployed.Servicedeployed
equals, getContext, getCustomData, getCustomDataContentType, getSubject, hashCode, setContext, setCustomData, setCustomDataContentType, setSubject
-
-
-
-
Constructor Detail
-
ServiceDeployedCDEvent
public ServiceDeployedCDEvent()
Constructor to init CDEvent and set the Subject forServiceDeployedCDEvent.
-
-
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 servicedeployed.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
-
setSubjectArtifactId
public void setSubjectArtifactId(String artifactId)
- Parameters:
artifactId-
-
setSubjectEnvironmentId
public void setSubjectEnvironmentId(String id)
- Parameters:
id-
-
setSubjectEnvironmentSource
public void setSubjectEnvironmentSource(String source)
- Parameters:
source-
-
-