toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case TopicRuleDestinationStatus.enabled:
      return 'ENABLED';
    case TopicRuleDestinationStatus.inProgress:
      return 'IN_PROGRESS';
    case TopicRuleDestinationStatus.disabled:
      return 'DISABLED';
    case TopicRuleDestinationStatus.error:
      return 'ERROR';
    case TopicRuleDestinationStatus.deleting:
      return 'DELETING';
  }
}