toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case TriggeredBy.user:
      return 'USER';
    case TriggeredBy.appconfig:
      return 'APPCONFIG';
    case TriggeredBy.cloudwatchAlarm:
      return 'CLOUDWATCH_ALARM';
    case TriggeredBy.internalError:
      return 'INTERNAL_ERROR';
  }
}