toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ServiceActionAssociationErrorCode.duplicateResource:
      return 'DUPLICATE_RESOURCE';
    case ServiceActionAssociationErrorCode.internalFailure:
      return 'INTERNAL_FAILURE';
    case ServiceActionAssociationErrorCode.limitExceeded:
      return 'LIMIT_EXCEEDED';
    case ServiceActionAssociationErrorCode.resourceNotFound:
      return 'RESOURCE_NOT_FOUND';
    case ServiceActionAssociationErrorCode.throttling:
      return 'THROTTLING';
  }
}