toValue method
Implementation
String toValue() {
switch (this) {
case EventType.thing:
return 'THING';
case EventType.thingGroup:
return 'THING_GROUP';
case EventType.thingType:
return 'THING_TYPE';
case EventType.thingGroupMembership:
return 'THING_GROUP_MEMBERSHIP';
case EventType.thingGroupHierarchy:
return 'THING_GROUP_HIERARCHY';
case EventType.thingTypeAssociation:
return 'THING_TYPE_ASSOCIATION';
case EventType.job:
return 'JOB';
case EventType.jobExecution:
return 'JOB_EXECUTION';
case EventType.policy:
return 'POLICY';
case EventType.certificate:
return 'CERTIFICATE';
case EventType.caCertificate:
return 'CA_CERTIFICATE';
}
}